Reducing Hit to FPS On Save

Hi! First off, you're reading this, I love you. Huggles.

On topic, I am trying to create an autosave in a parallel process every second.

DataManager.saveGame(1);

I put this in common event, set to parallel, and then turn it on with a switch flicked at the very beginning of the game.

Initially, I assumed this was going to make the game hang every time it saved, but as I loaded it up and tested it I quickly realized that it was all smooth as butter. Which was great! But, at this point, I had next to no other plugins enabled. That's where the trouble started.

I went off and loaded up almost every Yanfly Engine plugin I figured would be useful (IE next to all of them) and the game immediately decided to start hanging on every single save. Not optimal, nor playable. So, before I go testing every single one of Yanflys plugins to determine which one is slowing the save process down, (I should have put them in one at a time oh my gooood) does anyone have any tips?

My plugins are as follows:

1.PNG
2.PNG
3.PNG
4.PNG
5.PNG
Question why do you want to save every second (this is generally unneeded for an RPG game or any game IMO)?
A better design would be to save once after map change, talking to an npc or opening a chest. This would provide you with very consistent saves for a lot better performance. Alternately most games I have played that have timed auto saves do so every 30 or 60 seconds.
To say whether or not it's needed is more subjective than anything, but I definitely think it is. The goal is to minimize the players ability to cheese themselves out of punishment, via the way Dark Souls does it. My game features similar mechanics, and on death you lose the currency that you use to level up instead of loading a save.
Obviously that would be pointless if players manually controlled a save, and on top of that saving this often means that quitting and coming back later is always an option.

I have set it to save less often, but the hanging is still just as bad and a major issue. The game hanging every 30 to 60 seconds is just as bad, to me.
If there's really no way to make smooth saves with Yanflys plugins the map transfer autosave method works, it just means remembering to place a thousand save triggers I wouldn't need to if I could just figure out what's causing the saves to be so slow now.
It really urks me because, like I said, it was seamless before.

(Though I really might just be being picky & whiny right now honestly)
I use Orange Auto Save with the "Save On Plugin Transfer" on, which should work well enough. I think that should be enough of an Autosave scheme for an RPG Maker game, since map transfers happen just about every other minute on some games.
Adding plug-ins will slow down saving, as plug-ins add more data that has to be saved. So honestly the problem is probably that you just added too many plug-ins which ballooned the amount of data that has to be saved, and before you had so little data to save that it could save it every second with no issues. Now though, there's just too much to save to make this feasible.

Best solution is to add a wait command to the autosave command, or have it save only when you enter the map.

Though...something to consider. Have you thought about what will happen if a player exits the game *while* the autosave is running? If they do, that autosave will be incomplete and it now will just be garbage. This can result in the player having to either load a new save file, or, worst case, delete all their saves due to an invalid save not letting any of them work (which can happen if the save file length gets messed up). So..I really have to second the suggestion to not save every second, just because you are putting the player at more risk of a lost or corrupted save file due to that.
Yeah this all makes sense.
I hadn't thought about any force quitting or crashes just because I had not run across them/forced them while playtesting the game with autosave. Which is an oversight.
I wonder if Dark Souls nets a lot of corrupt saves. D:
Well, I've got an idea for the direction of things from here, I think.
Thanks for the response c:
Now that's something I'd like to see added to Orange Autosave: An indicator. Almost every game I know that Autosaves has an on-screen indicator that shows that its saving, so that the player will know that now's not time to turn off the power. With the many scrips I have in my own project (In fact, I've actually been paring some off, including parts from the Yanfly Engine) I could use something like that.

Original thread: https://forums.rpgmakerweb.com/threads/reducing-hit-to-fps-on-save.83175/