Happy hello,
I have 66 dictionaries holding player stats (each dictionary contains about 500 keys each with a value of a class with 6 or 7 simple fields); in a typical play session, only some of the dictionaries change.
Should I simply save all dictionaries at the end of gameplay (is there overhead saving an unchanged dictionary?) or should I set bools for dictionaries that have changed and use a conditional statement to only save changed dictionaries or does EasySave3 have an if (item.changed) > then save - type of functionality?
Thanks!
Danny
Game over; save everything or only what has changed
Re: Game over; save everything or only what has changed
Hi there,
I would just save all of the Dictionaries unless you're encountering performance issues.
If you're encountering performance issues, I'd then follow this guide:
https://docs.moodkie.com/easy-save-3/es ... rformance/
If you're still encountering performance issues after that, then I would consider setting a bool for your Dictionaries and only save the ones which have changed (Easy Save doesn't contain this functionality because the act of comparing the data to the saved data would have a greater performance impact than simply saving the data).
All the best,
Joel
I would just save all of the Dictionaries unless you're encountering performance issues.
If you're encountering performance issues, I'd then follow this guide:
https://docs.moodkie.com/easy-save-3/es ... rformance/
If you're still encountering performance issues after that, then I would consider setting a bool for your Dictionaries and only save the ones which have changed (Easy Save doesn't contain this functionality because the act of comparing the data to the saved data would have a greater performance impact than simply saving the data).
All the best,
Joel
Re: Game over; save everything or only what has changed
Thanks very much for the information!
Danny
Danny