clone functionality (close #161)

This commit is contained in:
Michele Caini
2018-12-13 08:55:43 +01:00
parent c9fddedbf1
commit cb9a147fff
6 changed files with 121 additions and 26 deletions

View File

@@ -245,6 +245,7 @@ TEST(Benchmark, IterateTwoComponents1MOne) {
TEST(Benchmark, IterateTwoComponentsPersistent1M) {
entt::registry<> registry;
registry.persistent_view<position, velocity>();
std::cout << "Iterating over 1000000 entities, two components, persistent view" << std::endl;
@@ -439,6 +440,7 @@ TEST(Benchmark, IterateFiveComponents1MOne) {
TEST(Benchmark, IterateFiveComponentsPersistent1M) {
entt::registry<> registry;
registry.persistent_view<position, velocity, comp<1>, comp<2>, comp<3>>();
std::cout << "Iterating over 1000000 entities, five components, persistent view" << std::endl;
@@ -687,6 +689,7 @@ TEST(Benchmark, IterateTenComponents1MOne) {
TEST(Benchmark, IterateTenComponentsPersistent1M) {
entt::registry<> registry;
registry.persistent_view<position, velocity, comp<1>, comp<2>, comp<3>, comp<4>, comp<5>, comp<6>, comp<7>, comp<8>>();
std::cout << "Iterating over 1000000 entities, ten components, persistent view" << std::endl;