How would you manage game states in DOTS?
I saw an old post mentioning you have to spawn / despawn components to manage game states, is that still the same in recent DOTS?
Sounds pretty weird of handling game states having to spawn entities to manage the states.
For example in Bevy ECS you can just define an enum and then the user can choose whether to run the system if it is in the Playing game state based on an enum that is globally accessible and is not an entity but rather a global "resource". But from what I read using an enum to manage game states in DOTS is not viable since there is going to be a performance cost because systems would always run and having to check what state it currently is each update.
Reference