From 44c42a85c2615835d9ca4ec4b19c5a90a1784115 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Mon, 10 Apr 2023 17:20:50 +0200 Subject: [PATCH] Examples/PhysicsPlayground: Reduce ship count --- examples/PhysicsPlayground/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/PhysicsPlayground/main.cpp b/examples/PhysicsPlayground/main.cpp index 728315efc..090a5c103 100644 --- a/examples/PhysicsPlayground/main.cpp +++ b/examples/PhysicsPlayground/main.cpp @@ -294,7 +294,7 @@ int main() colliderModel->SetMaterial(i, colliderMat); } - constexpr std::size_t ShipCount = 1000; + constexpr std::size_t ShipCount = 20; for (std::size_t i = 0; i < ShipCount; ++i) { entt::handle shipEntity = world.CreateEntity(); @@ -314,7 +314,7 @@ int main() shipEntity.emplace(physSystem.CreateRigidBody(shipCollider)); #endif - shipEntity.get().AttachRenderable(colliderModel); + //shipEntity.get().AttachRenderable(colliderModel); } }