mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
add some trace contexts for easier debugging
This commit is contained in:
parent
152edd477c
commit
c79e3e5a6d
1 changed files with 5 additions and 1 deletions
|
@ -6311,7 +6311,10 @@ void Application::update(float deltaTime) {
|
||||||
{
|
{
|
||||||
PROFILE_RANGE(simulation_physics, "RemoveEntities");
|
PROFILE_RANGE(simulation_physics, "RemoveEntities");
|
||||||
const VectorOfMotionStates& motionStates = _entitySimulation->getObjectsToRemoveFromPhysics();
|
const VectorOfMotionStates& motionStates = _entitySimulation->getObjectsToRemoveFromPhysics();
|
||||||
_physicsEngine->removeObjects(motionStates);
|
{
|
||||||
|
PROFILE_RANGE_EX(simulation_physics, "NumObjs", 0xffff0000, (uint64_t)motionStates.size());
|
||||||
|
_physicsEngine->removeObjects(motionStates);
|
||||||
|
}
|
||||||
_entitySimulation->deleteObjectsRemovedFromPhysics();
|
_entitySimulation->deleteObjectsRemovedFromPhysics();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6320,6 +6323,7 @@ void Application::update(float deltaTime) {
|
||||||
VectorOfMotionStates motionStates;
|
VectorOfMotionStates motionStates;
|
||||||
getEntities()->getTree()->withReadLock([&] {
|
getEntities()->getTree()->withReadLock([&] {
|
||||||
_entitySimulation->getObjectsToAddToPhysics(motionStates);
|
_entitySimulation->getObjectsToAddToPhysics(motionStates);
|
||||||
|
PROFILE_RANGE_EX(simulation_physics, "NumObjs", 0xffff0000, (uint64_t)motionStates.size());
|
||||||
_physicsEngine->addObjects(motionStates);
|
_physicsEngine->addObjects(motionStates);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue