Actor bucketing #8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Actors' tags and components usually remain constant throughout the game, but currently,
wh-engine
still checks the tags of every actor, every frame.I could speed up the performance of the rendering system (and future systems) by sorting actors into groups by their tags. Then,
wh-engine
would only have to process the actors inside the buckets it's interested in, skipping the(some (lambda (x) [actor (has-tag x)]) tag-list)
nonsense entirely.This would make changing actors' tags somewhat slower, but that's an acceptable tradeoff.
wh-engine
only has to search that list if the tag mask changes