Slow saving on Windows deployment for MV

I have my game deployed on windows, mac and linux however for some reason, my windows version takes a long time to save. For my mac/linux version it takes around 4 seconds to save however on the windows version saving takes about 200 seconds. My windows version also has a slight lag when loading. Wondering if anyone had the same issue and what they did to fix it.

Things I have tried:
1. Disable each plugin one by one to see if a plugin caused it. With all plugins disabled windows saves in about 45 seconds so could be some plugin but still a long time even without plugins. Yanfly's itemcore is what increases the save time but only for Windows version.

2. Maybe my game size is too big. Save files come to about 800kb. my data file is about 45mb. In that case there might not be too much I can do.

3. Tried deploying through MZ. Fixed the crashing issues for the mac version however the windows saving issues persisted.
With all plugins disabled windows saves in about 45 seconds
That's crazy nuts. In 45 seconds your drive should be able to write gigabytes of data. I can't think of a plugin that would be altering the low level functions that MZ uses to write its saves.

2. Maybe my game size is too big. Save files come to about 800kb.
See above - that's an utterly inconsequential size for your computer. However, I think it's pretty huge for a save file. My saves for my project are 39-49 kb, so I wonder if you're using some huge number of variables/switches/something you've added to the save data.

It still shouldn't have a significant effect on your processing time to write that much, just...relatively it's a lot.

my data file is about 45mb.
What is your "data file"? Do you mean your data folder of your project, with all of the JSON files inside?

That's pretty huge, considering all of the contents is saved in a text format, but it still shouldn't be affecting the save process of a running game. (again, for comparison, mine is 6.2 MB, presuming you're talking about the data folder)

My first thought would be that something is wrong with your Windows computer. I assume the Windows, Mac and Linux deployments are not all on the same computer, correct?

It could be a failing hard drive or perhaps some kind of motherboard issue.

Someone else might have other thoughts
You are right I thought it was the computer that caused the long saving issue at first so I tried the windows version on my steam deck running proton and had the same issue, also test players also noted the long save times so that seems to rule out hardware.

My game has a lot of stuff in it (800 variables/switches) although I wouldn't think that would take up that much space. Although what makes me wonder is why only the windows version has this issue.

Luckily my game is mostly done so I won't be adding more to it but having a 2 minute long save where it seems like the game is frozen is a bit discouraging. I appreciate the input though!
Would you be willing to let me test out the game, so I can try to take a look at the issue?
can you check where on windows your game is located?
Microsoft tries to get all their customers to use OneDrive without really explaining what that means, and cloudsyncing can cause delays if the game is placed into a cloudsync'ed folder.

Also, have you included any plugin that changes the way the saving works? There are a few that allow you to redirect saving for various reasons.

Third, the size of the savefiles is really strange - at the top of my head I can only think of two possibilities what could make the savefiles that big: either you'r using a dynamic database plugin that constantly adds to the database (for example yanfly's item randomizer or something similar), or you have a plugin which keeps a log of what it does in the savefile, either for bughunting purposes or for the ability to reset battles or something like that.

It might help to get screenshots of your plugin manager to see what plugins you're using in case you don't know of their capacities - for example by default yanfly's item randomizer is activated in the item core if you never manually changed that configuration.
Have you messed with your NW.js version? You mentioned testing it on Mac which, by default, MV games no longer run correctly on.
You can try out the game here: game

There is also an old browser version which still has the save issue: here

I do have an online sync for my game through dropbox since I work on my game sometimes on my desktop, sometimes on my mac. However the deployed version is not synced to any cloud services (testplay and deployed version both have the long saves)

I do have a few plugins that change how the saving and making the database dynamic. Just to name a few: Yanfly_itemcore, Yanfly_Savecore, Yanfly_autosave, Yanfly_selfswitchvariables, FELSKI_autosave. saving still takes 45 seconds with all these plugins disabled.

I did modify my NW.js version for mv but not mz. I just copy the files into a blank mz project so the game runs on MAC so I don't think it would effect anything. (Same for windows just for the performance boost)

Below is a screenshot of my plugins, the order is a bit weird since moghunter plugins don't play well with yanfly's

1709069230093.png

1709069353790.png

1709069415196.png

1709069449069.png

1709069496376.png

1709069536114.png
Yanfly's plugins have to be in the order in which they are listed on yanfly's website, or they will not function correctly.
you can place other plugins between them if that is needed for compatibility, but the yanfly plugins themselves cannot be in the wrong order - which yours are.
Hmm, I could change the order for sure and play around with the order of the other plugins. See if it makes a difference. Not sure how that would only effect the windows version of the game but at least it's an avenue to try.

Okay, after changing the plugin order to yanfly's recommended order, It still didn't seem to change the save time (Still hovering around 2 minutes on windows). I wonder what could be the difference between saving on a Windows machine vs saving on a MAC. I appreciate the help anyways.

I cleared all the old save data after the plugin rearranging and it's down to about 30 seconds. Still slower on windows but I can accept 30 seconds. Now on to releasing my final version of the demo. Thanks for the help.
I cleared all the old save data after the plugin rearranging and it's down to about 30 seconds.
That does explain a few things - the problem has to do with the differences on how the OS stores data on the HDD.
And yes, the MacOS filesystem is different and much more effective than the Microsoft filesystem, because Microsoft tries to keep compatibility back to MS-DOS (FAT32), while Apple had included some advanced functions very early in their OS and filesystem.
Don't allow me to get started on the idiocy that is the windows recycle bin for example.
@midnightzelda
I tried the windows demo, and saving took less than 2 seconds. And this was while using my storage drive (a 7200 RPM HDD), rather than an SSD. I'm on Windows 10, and my PC's specs are nothing special. I can only assume that:
A. I'm not far enough into the game to trigger whatever is causing the problem that you're experiencing.
-or-
B. There is an issue with the Windows system that you're testing on.
-and/or-
C. Your Windows system has significantly worse specs than the other systems you've tested on.

That does explain a few things - the problem has to do with the differences on how the OS stores data on the HDD.
And yes, the MacOS filesystem is different and much more effective than the Microsoft filesystem, because Microsoft tries to keep compatibility back to MS-DOS (FAT32), while Apple had included some advanced functions very early in their OS and filesystem.
Don't allow me to get started on the idiocy that is the windows recycle bin for example.
Home versions of Windows stopped supporting installation to FAT32 drives almost 20 years ago. Yes, Windows still supports reading and writing to non-system drives that use FAT32... but so does MacOS, and so does Linux, so that's kinda irrelevant.

Modern versions of Windows use NTFS, and modern versions of MacOS use APFS. Each has its own advantages and disadvantages, but neither is notably faster than the other (especially by a factor of 8x like the OP is experiencing), so the file system should be unrelated to the OP's issue.
Thanks for trying it out Arthran.

The long saving starts right away, I have tried saving on longer playthroughs around 10 hours in and the save time doesn't seem to increase in length thankfully.

I did think it was perhaps my windows system at first which is why I would test on the steamdeck as well. Even if both devices were bad/weak some test players also commented on the save times. Possibly it could be a coincidence. The key word is some though, I did ask some test players and they said they didn't experience anything either. At the very least with the save times down it should affect fewer people now.

I think I will have to accept the state it is in right now and if I see a bunch of complaints about it at full release, I'll look back at it. I'll just make sure autosaves are disabled by default.

Original thread: https://forums.rpgmakerweb.com/threads/slow-saving-on-windows-deployment-for-mv.166200/