Hello! I do a lot of printing to test if my code is working. And I sometimes print in for loops or while true do loops. Would this cause lag?
Too much printing might cause some lag in the client, although in studio I’ve never had this issue. print
is meant for debugging though; print
shouldn’t be present anywhere in the production code.
Printing is a very efficient roblox command that is widely used. Since no one has had problems with printing causing script overload, its safe to say you have a pretty big boundary before printing ever becomes a problem, which is only a factor in very rare cases which most scripters dont run into. In short, the answer is no.
Printing shud not cause lag… I never got this I have printed 1000s of stuff at a time…
When i was working on a game, i did some error causing the output to spam print nil every millisecond
and it did some performance lag
its not the actual printing, but the cache of print data. just clear the output and you’ll see your framerate go back to normal