Page 1 of 1

Game freezes for a few seconds when saving.

Posted: Sat Feb 20, 2021 1:45 am
by Renoki
Hey there,
My project freezes up for a few seconds whenever I save a few variables. Auto Save isnt used at all.
Im saving about 50 variables, from ints to dictionaries.
Is there a way to make it a more smooth process without the freezing occuring?

Re: Game freezes for a few seconds when saving.

Posted: Sat Feb 20, 2021 9:41 am
by Joel
Hi there,

Please see the Improving Performance guide:
https://docs.moodkie.com/easy-save-3/es ... rformance/

All the best,
Joel

Re: Game freezes for a few seconds when saving.

Posted: Sat Feb 20, 2021 6:29 pm
by Renoki
nice thank you, I started using it but is there a way to save to the cache to a specific file name and then save it to a file name?
I got this error: FileNotFoundException: The file 'SaveFile1.es3' could not be stored because it could not be found in the cache.

Trying to do:
ES3.StoreCachedFile("SaveFile1.es3");

Re: Game freezes for a few seconds when saving.

Posted: Sat Feb 20, 2021 6:35 pm
by Joel
Hi there,

You need to use the same filename when saving as you use when calling ES3.StoreCachedFile. For example if you save using the following call:

ES3.Save(myKey, myData, "myFile.es3");

Then to store it to cache you would use:

ES3.StoreCachedFile("myFile.es3");

All the best,
Joel

Re: Game freezes for a few seconds when saving.

Posted: Sat Feb 20, 2021 10:49 pm
by Renoki
Nice it works thank you!