History

Merge remote-tracking branch 'upstream/master' into android

Brad Davis committed 8 years ago

Commit bdfa1272 parents cbb2d9d 2e4fc5e63 files · +921 −822Browse files

Showing the changes to interface/src/Application.cpp (1 of 63 files). Show all

Unified · Split

interface/src/Application.cpp+9−4
@@ -610,8 +610,7 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) { · 609 unmodified lines
610610 }
611611 };
612612 reportAndQuit("--protocolVersion", [&](FILE* fp) {
613− DependencyManager::set<AddressManager>();
614− auto version = DependencyManager::get<AddressManager>()->protocolVersion();
613+ auto version = protocolVersionsSignatureBase64();
615614 fputs(version.toLatin1().data(), fp);
616615 });
617616 reportAndQuit("--version", [&](FILE* fp) {
@@ -2148,6 +2147,11 @@ void Application::cleanupBeforeQuit() { · 1530 unmodified lines
21482147 DependencyManager::destroy<AudioInjectorManager>();
21492148 DependencyManager::destroy<AudioScriptingInterface>();
21502149
2150+ // The PointerManager must be destroyed before the PickManager because when a Pointer is deleted,
2151+ // it accesses the PickManager to delete its associated Pick
2152+ DependencyManager::destroy<PointerManager>();
2153+ DependencyManager::destroy<PickManager>();
2154+
21512155 qCDebug(interfaceapp) << "Application::cleanupBeforeQuit() complete";
21522156 }
21532157
@@ -4420,8 +4424,9 @@ void Application::updateLOD(float deltaTime) const { · 2266 unmodified lines
44204424 float presentTime = getActiveDisplayPlugin()->getAveragePresentTime();
44214425 float engineRunTime = (float)(_renderEngine->getConfiguration().get()->getCPURunTime());
44224426 float gpuTime = getGPUContext()->getFrameTimerGPUAverage();
4423− float maxRenderTime = glm::max(gpuTime, glm::max(presentTime, engineRunTime));
4424− DependencyManager::get<LODManager>()->autoAdjustLOD(maxRenderTime, deltaTime);
4427+ auto lodManager = DependencyManager::get<LODManager>();
4428+ lodManager->setRenderTimes(presentTime, engineRunTime, gpuTime);
4429+ lodManager->autoAdjustLOD(deltaTime);
44254430 } else {
44264431 DependencyManager::get<LODManager>()->resetLODAdjust();
44274432 }