1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 03:12:36 +01:00

setForcedUpdateAllAabbs to false; Reduces stepSimulation time by 35%.

This causes a drop from 6.5ms to 4.2ms on my machine.
This commit is contained in:
Daniel Evans 2018-11-18 13:21:06 +00:00
parent 711aad7701
commit f7bd8701db

View File

@ -92,6 +92,7 @@ GameWorld::GameWorld(Logger* log, GameData* dat)
_overlappingPairCallback.get());
gContactProcessedCallback = ContactProcessedCallback;
dynamicsWorld->setInternalTickCallback(PhysicsTickCallback, this);
dynamicsWorld->setForceUpdateAllAabbs(false);
}
GameWorld::~GameWorld() {