Page 1 of 1

Massive performance issue with ES3

Posted: Tue Jan 16, 2024 7:38 am
by Arde
Hello!

I have this massive performance issue related to ES3. I have tried to optimize button but it didn't do anything. I am mainly saving Dictionary's, Lists and
GameObjects in Unity. Unity's profiler says that it generates 30 MB of GC which causes the game have freeze spikes. I Can provide code if needed but deep profiler just showed that the root of problem is in ES3Writer.Save(), pictures attached. Last Picture is without deep profiler to see the effect without it and it is still massive (might look weird but leads Es3 saving as seen from deep profiler).

Re: Massive performance issue with ES3

Posted: Tue Jan 16, 2024 8:40 am
by Joel
Hi there,

Have you followed the Improving Performance guide?
https://docs.moodkie.com/easy-save-3/es ... rformance/

All the best,
Joel

Re: Massive performance issue with ES3

Posted: Tue Jan 16, 2024 9:46 am
by Arde
Thank you that did indeed solve the issue. Kinda related to Caching and I can make new discussion if you want but how would I go setting multiple save profiles? Is it just creating different file and loading different file to cache. Also how can images be saved to same save file or would it be folder then?

Re: Massive performance issue with ES3

Posted: Tue Jan 16, 2024 10:02 am
by Joel
It would indeed be a case of creating different files using the filePath parameter of the Easy Save methods.

To save an image to an Easy Save key/value-based file you would need to convert the image to bytes and then save this to a separate key. However, if possible I recommend saving images out to their own file and store the filename in the Easy Save file instead as to not bloat the file.