]> git.seodisparate.com - EntityComponentMetaSystem/commit
Implement forMatchingSignatures for efficiency
authorStephen Seo <seo.disparate@gmail.com>
Thu, 9 Nov 2017 12:10:01 +0000 (21:10 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 9 Nov 2017 12:17:40 +0000 (21:17 +0900)
commit0dba6874ad73794c599ab85320bc7763f87ad0d8
tree0f747cfe1ce36e7e92a0da93c3da8805dbccae54
parentd809d34716eb9db854c6d145136bfca251b37438
Implement forMatchingSignatures for efficiency

EC::Manager::forMatchingSignatures is different from
EC::Manager::forMatchingSignature in that it takes multiple signatures
and functions and iterates through all entities once. The trade-off is
that a vector of vectors is created to store matching entities.
This function can be called to use multiple threads as well, similar
to the "non-plural" version of this function.

See the doxygen-style documentation in src/EC/Manager.hpp for
forMatchingSignatures (or the generated doxygen html) for how to use.
Usage example is in the last unit test function in src/test/ECTest.hpp .
src/EC/Manager.hpp
src/test/ECTest.cpp