MV [RMMV] F8 console causes game to lag during battles

Whenever I open the console using F8 during a battle, the game lags incredibly hard to the point where it's unplayable (to around 2-3 FPS). The weird thing is, the lag completely disappears when the console is closed.

The console is also flooded with [Violation] 'requestAnimationFrame' handler took x ms' messages around every couple frames or so. I'm guessing this is the source of the lag? But I'm not exactly sure what is causing it. My list of plug-ins, as well as a screenshot of the issue, are attached below.
I'm guessing this is the source of the lag?
No, that wouldn't be the source of the lag, more like a symptom.

You could use the Performance tab to try and track down what exactly is causing the lag. I'm not very good at using that tab myself, but it's what it's there for.
No, that wouldn't be the source of the lag, more like a symptom.

You could use the Performance tab to try and track down what exactly is causing the lag. I'm not very good at using that tab myself, but it's what it's there for.
Alright, good to know. Here are the results of that. I'm not entirely sure on what to look for here? CPU usage seems to be rather high.

1771512228734.png
Hi!
On my times of MV, I remember mixing SRD Game Upgrade, Super tools and some other battle plugins from Yanfly, make my console also lags too much. Don't know the cause, but maybe you should start disabling one plugin and test. Disable another one and test. Until the lag is gone.
As I said, I'm not very good at using that tab, but maybe you can find a clue by clicking on "Bottom Up". If it looks like all the slowest functions come from the same plugin, then there's a good chance that that plugin is a big part of the cause.
SRD_GameUpgrade with SRD_Supertool engine can lag, using this [one] fix that.

However if you have a consol.log inside the gameMap update => makes major lag.
so if there is a map update with a console log, remove that.

I don't know which plugin uses animatedFrame request of violation,
if its running or printing by the consol log.

so find that log and rule that out.
I don't know which plugin uses animatedFrame request of violation,
if its running or printing by the consol log.
What? I don't quite understand what you said here, but it almost sounds like you're saying you don't know which plugin uses requestAnimationFrame? But the core game engine uses that, so I doubt there's a plugin directly involved there.
What? I don't quite understand what you said here, but it almost sounds like you're saying you don't know which plugin uses requestAnimationFrame? But the core game engine uses that, so I doubt there's a plugin directly involved there.
I never saw that error print before, but I do know, if they add a console.log("output")
inside the map update/refresh cycle, it can lag extremely.

as I did a test what it printed out on the tile size when I worked on my camera plugin.
and adding it there to fix the jitter nicely and rewritten it to work smoother,
I placed a console log inside, and it lags lots of it 😛

but I know what the animationFrame does, but didn't saw before like that.
Hi!
On my times of MV, I remember mixing SRD Game Upgrade, Super tools and some other battle plugins from Yanfly, make my console also lags too much. Don't know the cause, but maybe you should start disabling one plugin and test. Disable another one and test. Until the lag is gone.

Yeah this was it. Weird how Super Tools causes that to happen.
Gonna have to re-arrange the Battle UI to compensate. Thanks for the help <3

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-f8-console-causes-game-to-lag-during-battles.182521/