I am not sure if this is an issue that will / can be solved in the future but the in the recent versions of GDev the time to save my project has drastically increased to the point I have had to disable auto saving as once the saving starts, the whole UI freezes up.
I believe the slow down comes from the new update that caches resources as it started just after that update and watching the console / network tab it seems to be caching every object placed in every scene / eternal layout regardless if that scene / layout is active.
Whilst my project is quite large (11 Ext, 54 ExEvents, 7 ExLayouts, 1 scene) and I have a test layout with a large amount of objects, 1.2 minutes to save the project is… excessive and impossible to use when save on preview / update is enabled in the settings.
Below is an image of the network monitor, I can also supply a video of the save however it’s just 1.2 minutes of waiting on the UI.
I am still working on trying to replicate this issue in a new project using around 100 objects, however I have yet to get it working.
I went back to the original project and I noticed that caching seems to be looping on particular images when saving and what’s even more odd atleast of of them isn’t visible in any scenes or layouts.
Sorry for the quick edit but I think I might have worked out what is causing the issue. Icons in the events sheets.
When enabled, I get the mass amount of delay from caching, disabled it’s back to the old speed. It would explain as well why I am seeing alot of kangaroo move_1 images as well since there are a bunch of events that use thumbnails.
If that’s the case, could you try something for me?
Could you make a copy of your project in a new folder? In the copy, change this option to “Single file” and see if the issue is still here.
Ok great!
If you’re interested, I forgot to exclude the folders used in this split save feature from the filewatcher. So each time you save, they would change and trigger the filewatcher, resulting in some weird behaviors on your project.
I’ll add something to exclude those folders.
I asked you because I was having troubles reproducing the issue (I’m on Mac and the Windows file watcher is known to be cranky).
Thanks for tracking down the issue and the explanation. No issues with getting me to test, I wasn’t able to supply the project so it’s the least I can do.
Keep up the great work with Gdev, loving all the recent updates you guys are doing!