mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 04:43:31 +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,15 +260,27 @@ void EntityTreeRenderer::update(bool simulate) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
PerformanceTimer sceneTimer("scene");
|
||||||
auto scene = _viewState->getMain3DScene();
|
auto scene = _viewState->getMain3DScene();
|
||||||
if (scene) {
|
if (scene) {
|
||||||
render::Transaction transaction;
|
render::Transaction transaction;
|
||||||
|
{
|
||||||
|
PerformanceTimer pt("add");
|
||||||
addPendingEntities(scene, transaction);
|
addPendingEntities(scene, transaction);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PerformanceTimer pt("change");
|
||||||
updateChangedEntities(scene, transaction);
|
updateChangedEntities(scene, transaction);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PerformanceTimer pt("enqueue");
|
||||||
scene->enqueueTransaction(transaction);
|
scene->enqueueTransaction(transaction);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool EntityTreeRenderer::findBestZoneAndMaybeContainingEntities(QVector<EntityItemID>* entitiesContainingAvatar) {
|
bool EntityTreeRenderer::findBestZoneAndMaybeContainingEntities(QVector<EntityItemID>* entitiesContainingAvatar) {
|
||||||
bool didUpdate = false;
|
bool didUpdate = false;
|
||||||
|
|
Loading…
Reference in a new issue