How can I efficiently update only the entities that matter in a given frame?
Posted
by
lezebulon
on Game Development
See other posts from Game Development
or by lezebulon
Published on 2014-06-04T20:22:53Z
Indexed on
2014/06/04
21:45 UTC
Read the original article
Hit count: 246
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?
© Game Development or respective owner