How can I efficiently update only the entities that matter in a given frame?
- by lezebulon
I'm making a RTS, which can potentially have lots of units in one map (think Age of Empires).
I'm looking for a way to update my units. I want to avoid calling a virtual Update() method every frame on every entity. On the other hand, units that are not in view should still be updated and behave "normally."
I'm assuming this is a fairly standard question; what would be a way to handle this situation?