aboutsummaryrefslogtreecommitdiff
path: root/src/test/Profiling.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-20 11:10:06 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-20 11:10:06 +0100
commit5b1a26a13d8a2f44a7ef1fa8c0fc609c37adc28b (patch)
tree801ff9f3bbd82efacb5d4fdb1cbe4c09cfedf7c5 /src/test/Profiling.cpp
parent88d84763147fbd6bcc087f15a7460566a009cdb2 (diff)
parent69ca2bafcd617ac8af1b8f715f0c802205a60ab1 (diff)
merge masterloek/replay
Diffstat (limited to 'src/test/Profiling.cpp')
-rw-r--r--src/test/Profiling.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/Profiling.cpp b/src/test/Profiling.cpp
index f988700..d1da5a0 100644
--- a/src/test/Profiling.cpp
+++ b/src/test/Profiling.cpp
@@ -32,7 +32,7 @@ using namespace testing;
class TestScript : public Script {
bool oncollision(const CollisionEvent & test) {
- Log::logf("Box {} script on_collision()", test.info.this_collider.game_object_id);
+ Log::logf("Box {} script on_collision()", test.info.self.transform.game_object_id);
return true;
}
void init() {
@@ -50,7 +50,7 @@ public:
// Minimum amount to let test pass
const int min_gameobject_count = 100;
// Maximum amount to stop test
- const int max_gameobject_count = 150;
+ const int max_gameobject_count = 3000;
// Amount of times a test runs to calculate average
const int average = 5;
// Maximum duration to stop test
@@ -61,6 +61,8 @@ public:
ResourceManager resman{m};
ComponentManager mgr{m};
// Add system used for profling tests
+ EventManager evmgr{m};
+ LoopTimerManager loopmgr{m};
CollisionSystem collision_sys{m};
PhysicsSystem physics_sys{m};
ParticleSystem particle_sys{m};