Merge pull request #11512 from AndrewMeadows/more-profile-details

expose performance hot spot in stats details
This commit is contained in:
Sam Gateau 2017-10-04 18:34:19 -07:00 committed by GitHub
commit 02bcbe6d5f

View file

@ -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;