mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 01:23:38 +02:00
Merge pull request #11512 from AndrewMeadows/more-profile-details
expose performance hot spot in stats details
This commit is contained in:
commit
02bcbe6d5f
1 changed files with 19 additions and 7 deletions
|
@ -260,12 +260,24 @@ void EntityTreeRenderer::update(bool simulate) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto scene = _viewState->getMain3DScene();
|
{
|
||||||
if (scene) {
|
PerformanceTimer sceneTimer("scene");
|
||||||
render::Transaction transaction;
|
auto scene = _viewState->getMain3DScene();
|
||||||
addPendingEntities(scene, transaction);
|
if (scene) {
|
||||||
updateChangedEntities(scene, transaction);
|
render::Transaction transaction;
|
||||||
scene->enqueueTransaction(transaction);
|
{
|
||||||
|
PerformanceTimer pt("add");
|
||||||
|
addPendingEntities(scene, transaction);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PerformanceTimer pt("change");
|
||||||
|
updateChangedEntities(scene, transaction);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PerformanceTimer pt("enqueue");
|
||||||
|
scene->enqueueTransaction(transaction);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1078,4 +1090,4 @@ void EntityTreeRenderer::onEntityChanged(const EntityItemID& id) {
|
||||||
_changedEntitiesGuard.withWriteLock([&] {
|
_changedEntitiesGuard.withWriteLock([&] {
|
||||||
_changedEntities.insert(id);
|
_changedEntities.insert(id);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue