Loading from a Save Slot Causes Game to Run Slow
Posted: Mon Jun 03, 2024 6:44 pm
Hi, I have a very strange issue and need help trying to debug it.
I have a SaveSystem working. I wanted to add save slots that I can Save and Load from, so I took the Load/Save panels from the Dialogue System Menu Framework (I didn't use the full menu system, I just took out the buttons panels and hooked it up to my own Pause menu, added a SaveHelper. Doesn't seem like there's any missing references or anything.).
The Saving and Loading works, but once the load is complete, everything runs slowly until I exit play mode. I noticed that after loading the Time.deltaTime in an Update is always .02 (the same as my fixedDeltaTime). Time.timeScale is still 1 (and the game does speed up if I increase it).
This only happens if I load from the save slots. If I use AutoLoad it doesn't cause this problem. If I go back to my main menu and auto-load the game again, it also doesn't cause it (or fix it if I already loaded from a save slot).
Any ideas on what could be happening or how I could go about debugging this?
Thanks!
I have a SaveSystem working. I wanted to add save slots that I can Save and Load from, so I took the Load/Save panels from the Dialogue System Menu Framework (I didn't use the full menu system, I just took out the buttons panels and hooked it up to my own Pause menu, added a SaveHelper. Doesn't seem like there's any missing references or anything.).
The Saving and Loading works, but once the load is complete, everything runs slowly until I exit play mode. I noticed that after loading the Time.deltaTime in an Update is always .02 (the same as my fixedDeltaTime). Time.timeScale is still 1 (and the game does speed up if I increase it).
This only happens if I load from the save slots. If I use AutoLoad it doesn't cause this problem. If I go back to my main menu and auto-load the game again, it also doesn't cause it (or fix it if I already loaded from a save slot).
Any ideas on what could be happening or how I could go about debugging this?
Thanks!