Just wondering, does anything happen when you constantly add a console.log(anything here); inside an update method? For example, you left that out and release the game, would it cause memory leak when it is left there and not removed?
Does console.log (inside update method) cause memory leak?
Learning JavascriptSee here: https://groups.google.com/forum/?_escaped_fragment_=topic/nodejs/KtONbpVV68U#!topic/nodejs/KtONbpVV68U
Also, while it doesn't seem like it, the console is actually non-standard (https://developer.mozilla.org/en-US/docs/Web/API/Console), so it may cause your game to not work in every environment. I would only use console statements for debugging or to log errors.
Also, while it doesn't seem like it, the console is actually non-standard (https://developer.mozilla.org/en-US/docs/Web/API/Console), so it may cause your game to not work in every environment. I would only use console statements for debugging or to log errors.
console.log affects performance, even without the console visible, so you wouldn't even want to keep them in, anyway.
Original thread: https://forums.rpgmakerweb.com/threads/does-console-log-inside-update-method-cause-memory-leak.54172/