Fix entities not loading when Interface doesn't have focus

Reverts https://github.com/highfidelity/hifi/pull/14286
This commit is contained in:
David Rowe 2018-11-13 14:50:02 +13:00
parent dc4b967ff5
commit e12833da23

View file

@ -6071,9 +6071,7 @@ void Application::update(float deltaTime) {
{ {
PROFILE_RANGE_EX(app, "Overlays", 0xffff0000, (uint64_t)getActiveDisplayPlugin()->presentCount()); PROFILE_RANGE_EX(app, "Overlays", 0xffff0000, (uint64_t)getActiveDisplayPlugin()->presentCount());
PerformanceTimer perfTimer("overlays"); PerformanceTimer perfTimer("overlays");
if (qApp->shouldPaint()) { _overlays.update(deltaTime);
_overlays.update(deltaTime);
}
} }
// Update _viewFrustum with latest camera and view frustum data... // Update _viewFrustum with latest camera and view frustum data...
@ -6158,10 +6156,8 @@ void Application::update(float deltaTime) {
PROFILE_RANGE_EX(app, "PostUpdateLambdas", 0xffff0000, (uint64_t)0); PROFILE_RANGE_EX(app, "PostUpdateLambdas", 0xffff0000, (uint64_t)0);
PerformanceTimer perfTimer("postUpdateLambdas"); PerformanceTimer perfTimer("postUpdateLambdas");
std::unique_lock<std::mutex> guard(_postUpdateLambdasLock); std::unique_lock<std::mutex> guard(_postUpdateLambdasLock);
if (qApp->shouldPaint()) { for (auto& iter : _postUpdateLambdas) {
for (auto& iter : _postUpdateLambdas) { iter.second();
iter.second();
}
} }
_postUpdateLambdas.clear(); _postUpdateLambdas.clear();
} }