Minimal Reproduction - Resetting the Game Revives Previously Disappeared Objects.zip (138.2 KB)
Description:
Pressing the space bar spawns objects with a lifespan of only 5 seconds;
Pressing F resets the game (not F5);
After the spawned objects disappear, they revive due to the game reset. This is a BUG.
Description:
Press the space bar to spawn objects with a lifespan of only 5 seconds;
Press F to reset the game (not F5);
When the generated object disappears, it will be revived by resetting the game, which is a BUG.
Supplement:
Since objects that are generated in the initial new game (temporarily called the First World) and are set to disappear will be revived upon resetting the game (temporarily called the Second World) and become part of the Second World, the Third World will then revive objects from both the First and Second Worlds. The Fourth World will revive objects from the First, Second, and Third Worlds. This cycle of world resets causes objects to revive exponentially, eventually leading to performance degradation or even game crashes.
Supplement:
Since the objects that will disappear from the new game (temporarily called the first world) will be resurrected by resetting the game (temporarily called the second world) and belong to the second world, then the third world will resurrect the objects of the first and second worlds, and the fourth world will resurrect the objects of the first, second, and third worlds.