Does anyone else experience the small lagspike after 5-10 seconds?

Hey guys,

when using Plugins that "animate" something on the screen like Khas UltraLighting or Tsukitsune_animatedOverlayAddon the plugins work just fine but the game itself gets a small lag spike where the fps drop from 60 to 20~ and go back up.
I think it has something to do with the incompatibality between plugin and RMMV Version but I wanted to ask you if you
a) knew about the problem
b) know a workaround for it
Do you think it'll help if I go back to an earlier version of MV and downgrade my Project?

I've moved this thread to Plug-In support. Thank you.

nothing about compatibility
it is performance issues
that can happen by many thing
one of it is how you managed to use the add on layer
if it too large backward engine not help
you would considering to use a lesser map size
to optimize the performance

lighting plugin is a super ram eater
you need to keep in mind that
you need to sacrifice other thing to use it
and there are 3-4 differences plugin about lighting
I’m not sure which one is better
so try all of it is a must
I've moved this thread to Plug-In support. Please be sure to post your threads in the correct forum next time. Thank you.

Shoot you're right I'ma sowwy :c

nothing about compatibility
it is performance issues

If it was a performance thingy It wouldn't follow such a precise pattern on multiple devices right?
For example the Animation Plugin from tsukitsune needs time to fetch the images at the beginning but after that it runs smooth and still gets the lag spike after every 10 seconds.
There has to be a reason since my cpu/ram seems to be fine during the lag.
Honestly not really sure but perhaps these could help in some areas...
(at least when they are released completely)


@KillerGin, @ScSWinter any insight on the OP question, you're probably more knowledgeable to answer this then I am.
Honestly not really sure but perhaps these could help in some areas...
(at least when they are released completely)

I tried the Anti Lag Plugin and even the Irina_PerformanceUpgrade and both didn't work.
But the light plugin you posted looks very promising. Only a question when it'll come out.

The thing with this problem is:
When I use Khas Demo Project then his lighting works perfectly with no drops.
And when I delete all my plugins except for Khas Lighting I still get the frame drops.

I can't explain it to myself other than an update on for example the pixi.js which "broke" the plugins building on it.
But the light plugin you posted looks very promising. Only a question when it'll come out.
Yeah same thoughts 😉 @KillerGin *wink* *wink* *nudge* *nudge* lol (seriously though lookin' good so far)

The thing with this problem is:
When I use Khas Demo Project then his lighting works perfectly with no drops.
And when I delete all my plugins except for Khas Lighting I still get the frame drops.

I can't explain it to myself other than an update on for example the pixi.js which "broke" the plugins building on it.
Hmm... that definitely seems like a good theory, I had similar issues in the past so now I don't use any lighting plugins, for now at least.
I think I found out what causes the problem.
Every time there is a lagspike the exact same thing as in the screenshot is happening.
Unbenannt.png


And the real question is: How do I find out what takes so long exactly?

Edit:
I now know that the texImage2D/Texture.upload makes the FPS drop but I'd like to debug a little more and see which files it loads and which function gets called.
I was experiencing something similar and was caused by a big drawing process during the Scene_Map, by a plugin that draw a HUD in the map. Functions like drawGauge or drawText or, in fact, everything that is redrawn each frame can cause that. Same for loading. You need to know what plugin is, what function is drawing in Scene_Map (or in Window attached to that) each frame, and try to not redrawing each frame. The ideal is only one time, maybe you can delay it to one time each two frames or three.

When you deactivate Khas Lighting the lag is gone?
Oh hey!

Yeah, I was experiencing lag due to a lighting plugin (in my case it is Terrax). High end computers could still run my game at 60 FPS no problem. However low end computers and even some mid range computers where definitely dropping a bunch of frames due to lag spikes for no real good reason. The lighting plugin would randomly lag, even on the smallest of maps. On map change or menu "opening" it would clear but dang, it is super annoying!

It was driving me insane! That lead me to start the development on a lighting plugin that is still WIP. I will update the page when there is something, most likely, a nice demonstration/video to show. So until then I programmed my game to shut off the lighting plugin when not in use to give computers some much needed breaks (guarantee of no lag spikes during the "day" lol).

Original thread: https://forums.rpgmakerweb.com/threads/does-anyone-else-experience-the-small-lagspike-after-5-10-seconds.121597/