]> git.seodisparate.com - EntityComponentMetaSystem/commit
Improve efficiency of stored function calling
authorStephen Seo <seo.disparate@gmail.com>
Tue, 14 Nov 2017 04:51:24 +0000 (13:51 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Tue, 14 Nov 2017 04:51:24 +0000 (13:51 +0900)
commit6b0e950c84614b99ad24fa108e448d1db767dfc8
treead8b555c2e77e8d7d0e8cd7a4ee1522609245171
parent248cf2676a0e45d1d2febbab1f4ee6e2c731dd4a
Improve efficiency of stored function calling

Previously, every called function iterated through all entities for
calling the function on matching entities.

Now, callForMatchingFunctions iterates through all entities once,
stores matching entities for each function, then calls the functions on
the matching entities.
src/EC/Manager.hpp