View Single Post
Old 12-01-2017, 06:42 AM   #131
GoldenCrest Games
High School Varsity
 
Join Date: Jul 2016
Thumbs up

Quick note:

Remember this line item from the to-do list at the beginning of Ex2.5:
"Save/load optimization (it takes forever to save and load everything)"

I thought this was worth a specific followup, in case anyone else out there is using Unity and the EasySave asset. (it's pretty popular)

At that point, my saving time was about 120 seconds and the loading time was 60 seconds. I switched from the default save/load to the data-writer that leaves the file open and writes/reads continuously until you close it. That got the save time down to less than a second!

Unfortunately it made the load time 93 seconds. (and I still don't have career stats saving/loading yet)

I finally changed everything to sequential save/load instead of using tags. It's a little harder to keep track of everything, but I got the load time down to about 1 second with the save time still around 0.5 seconds. It was a frustrating problem that I thought it best to share the solution, in case anyone else is struggling with it.
__________________
Live Chat!
YouTube Channel
GoldenCrest Games is offline   Reply With Quote