Game freezes for a few seconds when saving.

Discussion and help for Easy Save 3
Post Reply
Renoki
Posts: 10
Joined: Thu Jul 19, 2018 12:36 pm

Game freezes for a few seconds when saving.

Post 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?
Attachments
Unity_2021-02-18_14-47-39.png
Unity_2021-02-18_14-47-39.png (41.58 KiB) Viewed 1225 times
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Game freezes for a few seconds when saving.

Post by Joel »

Hi there,

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

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Renoki
Posts: 10
Joined: Thu Jul 19, 2018 12:36 pm

Re: Game freezes for a few seconds when saving.

Post 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");
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Game freezes for a few seconds when saving.

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Renoki
Posts: 10
Joined: Thu Jul 19, 2018 12:36 pm

Re: Game freezes for a few seconds when saving.

Post by Renoki »

Nice it works thank you!
Post Reply