Debugger causes FPS drop to 3

When I press F8 to bring up the debugger, my FPS drops to 3 or 4 from 60. This was not happening yesterday. I turned off all my plugins and the result is the same. I'm not sure where to go from here. Nothing is being printed to the console except a few initial lines of text from plugins.
First thing you need to know is that lag is additive - you can have different causes for lag, and they all add to the same lag.

Second thing is that most computers usually have a reserve against lag - processing power to use up before they become visibly laggy. The lag is already there, it just isn't visible (basically the FPS is locked at a max of 60 even if the computer could go 100 - and the 40 above 60 would be that reserve). That reserve is different on each computer, some basically manage 70 while others run at 150 etc.

Third, debugging always adds massively to lag - that is nothing unusual, it goes for every debugger in every program no matter where. You just usually don't see that in RM because that is taken from the reserve first.

fourth, plugins are rarely the cause of lag unless you install conflicting plugins or extremely intense plugins like lighting controls. Most of the causes of lag are by events, especially badly programmed parallel processes.


So in your case I suspect that you already had used up part of the reserve before, and in the last weeks added (intentionally or unintentionally) several parallel processes that used up the rest of the reserve, leaving nothing for the debugger.
Thanks Andar. So if I create a new map with no parallel processes (as a way of debugging) the issue should go away? I'm assuming that RPG maker doesn't run all of the parallel processes of all maps at once.
Just created a map with no events. Problem went away. Thanks again Andar. This might actually be one way of testing map fps. I do have a lot of animations on this map so perhaps splitting it into two or more maps would be a solution.
So if I create a new map with no parallel processes (as a way of debugging) the issue should go away? I'm assuming that RPG maker doesn't run all of the parallel processes of all maps at once.
almost correct

only the current map is loaded in memory, so only the events on the current map can be active
however, parallel processes in common events on the database are always active on all maps if switched on.

and third, some event functions (autonomous movement) are blocked if the event is too far from the player. That is why NPCs should use autonomous movement instead of a parallel process set move route where possible (it can't be done with every event, sometimes you need those parallel processes, but it will reduce lag from those events that use autonomous movement).

Original thread: https://forums.rpgmakerweb.com/threads/debugger-causes-fps-drop-to-3.121173/