Extreme slowdowns at Yanfly save menu

Hello, my game runs pretty great 60fps at all times however during going to Yanfly's save menu it begins to lag immensly and sometimes freezes up for several seconds in between saving and loading. This has been tested and happens on two gaming rigs, both easily meeting RPG Maker VX Ace's requirements. I was trying to find topics related to this issue but I didn't find anything of such. 🙁

Please help me fix this really annoying issue.
Bump, please help out this is a super annoying. :stare:
Help please.
Do you use any other scripts?

Is your game stored on an external/removable drive?

If it is, that means you savefiles are also, and maybe that's the cause...
Do you use any other scripts?

Is your game stored on an external/removable drive?

If it is, that means you savefiles are also, and maybe that's the cause...
I use very many scripts but it only lags in the save menu, literally nowhere else in the entire game. The lag's also not minor, after certain length into the game the frames drop all the way to 0 and the menus become sluggish and unresponsive.

This also happens on two different computers and both running the game from the physical HDD.
Yanfly's Save Engine got no such FPS issues by default, so it must be caused by another script.


Search for the 'refresh' methods in Yanfly's script and add a ' puts "refreshing now!" ' line at the end of each one. If you see tons of lines printed on the console, than one of your scripts makes a window refresh in every frame, which can and will kill your FPS. That script, however, should not be Yanfly's, because the save script doesn't do that alone.


But you wrote, "after certain length"... So, do you get these FPS drops instantly upon entering the save menu, or only later, after playing several minutes/hours?


At any rate, this seems like a specific error with a specific script, and it would be way easier to look for the issue in the project itself, rather than guessing what causes the slowdowns.
Yanfly's Save Engine got no such FPS issues by default, so it must be caused by another script.

Search for the 'refresh' methods in Yanfly's script and add a ' puts "refreshing now!" ' line at the end of each one. If you see tons of lines printed on the console, than one of your scripts makes a window refresh in every frame, which can and will kill your FPS. That script, however, should not be Yanfly's, because the save script doesn't do that alone.

But you wrote, "after certain length"... So, do you get these FPS drops instantly upon entering the save menu, or only later, after playing several minutes/hours?

At any rate, this seems like a specific error with a specific script, and it would be way easier to look for the issue in the project itself, rather than guessing what causes the slowdowns.
Yeah, I'd say after going through 2nd lvl and this minigame and this place. I tested starting third level with starting position and it was lag free, playing through the end minigame in 2nd level and goign through this event heavy map after made the lag appear in saving.
Can you please tell us what scripts are you using?

I used Yanfly Save Menu, and it was laggy, but just a very tiny bit.

I think it's laggy because of your event-heavy map, because event sprites need to dispose, and when saving all events are stored in $game_map...

But, it's strange that save menu is bugging, and ordinary menu is not.

Are you accessing save menu directly from map, or you go Menu -> Save?
Can you please tell us what scripts are you using?

I used Yanfly Save Menu, and it was laggy, but just a very tiny bit.

I think it's laggy because of your event-heavy map, because event sprites need to dispose, and when saving all events are stored in $game_map...

But, it's strange that save menu is bugging, and ordinary menu is not.

Are you accessing save menu directly from map, or you go Menu -> Save?
Directly from a map through a save point that calls for the savemenu. I have way too many scripts to really list here (and some of them are modified).
That explains it.

I think you are pretty much screwed because of that map.

Does the menu screen bug the same way?

Lagg can't be avoided, but it can be delayed, I think.

Try to enter the save scene when you have no savefiles, and you are on that event-heavy map, and then enter the menu scene and compare times.

If entrance to the menu screen is faster, some optimizations can be made, otherwise I think not.
That explains it.

I think you are pretty much screwed because of that map.

Does the menu screen bug the same way?

Lagg can't be avoided, but it can be delayed, I think.

Try to enter the save scene when you have no savefiles, and you are on that event-heavy map, and then enter the menu scene and compare times.

If entrance to the menu screen is faster, some optimizations can be made, otherwise I think not.
No, the only thing that lags or slows down is the save/continue menu. Everything else is un affected. I should mention, just having a save file after the lag and starting a new one and then going to save menu will still have the lag, even in the new game.
So, how do I delay the lag or such? I mean to make it any better at all would be good since I'm planning on selling this game and I really think I'd get lots of complaints about this. ;_;
Hello, I would still like to know how to fix this issue.

Original thread: https://forums.rpgmakerweb.com/threads/extreme-slowdowns-at-yanfly-save-menu.48895/