Regarding the issue where the respawn position of child GameObjects depends on the parent’s position: testing after the update still shows problems.
When a child object disappears, there is a chance it will not respawn, and even if it does, it no longer follows the parent’s actions.
Example: The parent node is a movement range, and the child node is an enemy object. Originally, the enemy was moving. However, after respawning, the enemy object no longer moves.
Regarding the memory leak issue that occurs when saving/loading
I tested it right after the update. After reading 30 times, the frame rate dropped to 36, which is the same as before the update. The leak issue still exists
If CLOSE_TO_CAMERA, then FPS starts to drop on reload.
If ALWAYS, then FPS remains steady.
This definitely shouldn’t be happening. If you would like, you can test this on your end to verify the same thing. If you use a simple test scene make sure the objects your testing are outside of the camera:
Thanks to Baz for the 5 hours of testing. Based on the clues you provided, I changed all the spawn conditions from CLOSE_TO_CAMERA to ALWAYS. After reading 70 times, the frame rate remained stable at 120. It seems that spawning when the camera is close is indeed the culprit.
It’s truly absurd that an option originally designed to save resources turned out to be the one leaking them.
I hope the development team can prioritize and quickly fix this issue in an update! Thanks again to Baz for the hard work in testing.