Teravisor, in base game, I noticed that whenever I am in the game, and ALT TAB to anything and let the game idle for a while, whenever i get back to the game's it's always super smooth 60 fps like, then after 5 seconds or after you open the menu it's back to the usual, what gives ?
That's how frame skipper works.
I
think that when graphics component isn't loaded and it pushes all 60 FPS, it stays there. But as soon as anything going on screen and FPS it outputs drops, it starts frameskipping - meaning skipping every second frame.
Skipping every second frame means that out of 60 normal FPS 30 are skipped and 30 are rendered, resulting in 30 FPS.
And it doesn't really want to go back to 60 even when it can unless it sees that for X amount of frames it had spare time after rendering and scripts.
When even more load is on, it starts to render 1 - skip 2, so you get 20 FPS rendered and 40 skipped.
You can always try frame timing reset trick I posted somewhere by calling
Graphics.frame_reset
and bind it to button, maybe it'll help, or making a script that resets it every second... But that won't fix underlying problem of RPG::Graphics being slow. When I did it every frame, I got around 44 FPS, and I assume that's what it can really render maximum per second. Specific FPS number depends on your CPU.
There are no manuals, no guides and no code to confirm how to optimize that part, so only way is to replace it, and that's what I posted.