Hello, I am currently developing a puzzle game using DOTS.
It’s a game that requires a large number of physics calculations—anywhere from as few as 200 to over 6,000. This game absolutely needs DOTS.
I am currently using Unity version 2022.3.16f1 on Windows 11. I have 64GB of RAM (definitely not a RAM shortage). I’m using URP.
Please help me. I’ve tried everything I possibly can. If you have any ideas related to a solution, please give me even one. I will try them and share the results.
- I’ve read my code multiple times. There are no problems.
- Since it’s a puzzle game, multiple stages are needed. Even though the stages are exactly the same, simply changing the ‘order’ causes it to freeze.
- I’m certain there’s an error related to SubScene loading.
- I tried deleting the Global Entity Cache and Scene Dependency Cache, but the bug still occurs.
- I tried ‘Reimport All,’ but the bug still occurs.
- The current DOTS version is 1.2.4.
- The bug occurred in Entities version 1.0.16, so I upgraded to Entities 1.2.4, but the bug is still occurring.
- I tried deleting the Library folder, but the bug still occurs.
- Please tell me a solution…
I cannot remove DOTS.
Here’s what’s happening to me:
- starting certain stages in editor mode, the Editor completely freezes and a memory spike occurs while loading a SubScene in the Editor. The only way to terminate it is to ‘force quit.’
- After building the game, starting certain stages causes the game to completely freeze and a memory spike occurs. The only way to terminate it is to ‘force quit.’
The player loop is in a simple form:
Stage Selection → Stage Play → Connected Stage Play → Connected Stage Play → Stage Selection → Stage Play → Connected Stage Play
For SubScene loading, I am using the default SubScene provided by Unity. Within the scene, I create a SubScene and modify its contents.
If my explanation is insufficient, please let me know. If you have any ideas related to a solution, please give me even one. I will try them and share the results.