persistent views are now more reliable (fix #160)

This commit is contained in:
Michele Caini
2018-11-23 09:40:42 +01:00
parent 7c5019c30f
commit 2a4e098645
7 changed files with 129 additions and 232 deletions

View File

@@ -260,8 +260,6 @@ TEST(Benchmark, IterateTwoComponentsPersistent1M) {
timer.elapsed();
};
registry.persistent_view<position, velocity>().initialize();
test([](auto, const auto &...) {});
test([](auto, auto &... comp) {
((comp.x = {}), ...);
@@ -459,8 +457,6 @@ TEST(Benchmark, IterateFiveComponentsPersistent1M) {
timer.elapsed();
};
registry.persistent_view<position, velocity, comp<1>, comp<2>, comp<3>>().initialize();
test([](auto, const auto &...) {});
test([](auto, auto &... comp) {
((comp.x = {}), ...);
@@ -714,8 +710,6 @@ TEST(Benchmark, IterateTenComponentsPersistent1M) {
timer.elapsed();
};
registry.persistent_view<position, velocity, comp<1>, comp<2>, comp<3>, comp<4>, comp<5>, comp<6>, comp<7>, comp<8>>().initialize();
test([](auto, const auto &...) {});
test([](auto, auto &... comp) {
((comp.x = {}), ...);