So I've been poking with RMMV on this project for a while, I have a good bunch of plugins installed (relevant one seems to be Yanfly's Grid-free doodads) and about two or three common events running, (relevant one seems to be the footstep event).
I have a specific map that I've been coming and going, constantly touching it from time to time. It always ran smooth, 60 fps, not a single frame dropped. But suddenly, the game began to do something weird in this map, as soon as I enabled the footstep event, with a serious performance drop that makes the frame rate go down to 15~20 fps.
Here's the weird thing: I haven't really changed anything, if anything I did add a few plugins, but I already tried removing them, with no performance difference. I've removed Yanfly's Grid-Free doodads, and I get the butter smooth 60 fps again. But, with it enabled, I've tried removing all doodads, and there's no actual difference in performance, still on 20 fps. It is a really weird case, because, seems like the doodads plugin is causing the frame rate to drop, when combined with the footsteps event, but it never did this before, it started doing it all of the sudden. And it doesn't seem to be an excess of doodads what's causing it, because clearing all doodads from the map doesn't improve the frame rate at all.
I've tried other maps in the game, with doodads and all, and it runs fine. But in this particular one, it goes crazy, but only when I enable the footstep event.
The footstep event basically is a piece of code which detects the region, an if that goes to one or another piece of code where the sound is played, and another piece of code that makes the event wait approximately 30 frames before playing the event again.
So, to sum it up, even if I re-enable all the new plugins I installed, but just disable the doodads plugin, I get the butter smooth 60fps with the footsteps. If I have all plugins on, with Doodads plugin, but without the footsteps, I get the butter smooth 60fps.
If I enable both, even in a small area that has absolutely no doodads, the frame rate drops down. And the weirdest part is, it didn't do this before, and I haven't changed anything except some new plugins that I already tried disabling, with no improvement. It's driving me crazy.
[EDIT] I've just tried disabling Terrax Lighting, leaving doodads and footsteps on, and it's also butter smooth 60fps. I've been using TL since the beginning of the project, and I never had a problem with it before as well, and, other maps which also use both TL and Doodads and footsteps don't have the problem.
[EDIT 2] I've tried using an event to activate the footstep variable instead of using F9, and it's back to smooth. But if I use F9 to activate it, the framerate slow downs. What.
[EDIT 3] Looks like simply accessing a menu is causing it. I guess I can discard it being the footstep event causing it. Even pressing ESC, and then returning to the game drops the framerate down.
I have a specific map that I've been coming and going, constantly touching it from time to time. It always ran smooth, 60 fps, not a single frame dropped. But suddenly, the game began to do something weird in this map, as soon as I enabled the footstep event, with a serious performance drop that makes the frame rate go down to 15~20 fps.
Here's the weird thing: I haven't really changed anything, if anything I did add a few plugins, but I already tried removing them, with no performance difference. I've removed Yanfly's Grid-Free doodads, and I get the butter smooth 60 fps again. But, with it enabled, I've tried removing all doodads, and there's no actual difference in performance, still on 20 fps. It is a really weird case, because, seems like the doodads plugin is causing the frame rate to drop, when combined with the footsteps event, but it never did this before, it started doing it all of the sudden. And it doesn't seem to be an excess of doodads what's causing it, because clearing all doodads from the map doesn't improve the frame rate at all.
I've tried other maps in the game, with doodads and all, and it runs fine. But in this particular one, it goes crazy, but only when I enable the footstep event.
The footstep event basically is a piece of code which detects the region, an if that goes to one or another piece of code where the sound is played, and another piece of code that makes the event wait approximately 30 frames before playing the event again.
So, to sum it up, even if I re-enable all the new plugins I installed, but just disable the doodads plugin, I get the butter smooth 60fps with the footsteps. If I have all plugins on, with Doodads plugin, but without the footsteps, I get the butter smooth 60fps.
If I enable both, even in a small area that has absolutely no doodads, the frame rate drops down. And the weirdest part is, it didn't do this before, and I haven't changed anything except some new plugins that I already tried disabling, with no improvement. It's driving me crazy.
[EDIT] I've just tried disabling Terrax Lighting, leaving doodads and footsteps on, and it's also butter smooth 60fps. I've been using TL since the beginning of the project, and I never had a problem with it before as well, and, other maps which also use both TL and Doodads and footsteps don't have the problem.
[EDIT 2] I've tried using an event to activate the footstep variable instead of using F9, and it's back to smooth. But if I use F9 to activate it, the framerate slow downs. What.
[EDIT 3] Looks like simply accessing a menu is causing it. I guess I can discard it being the footstep event causing it. Even pressing ESC, and then returning to the game drops the framerate down.