diff --git a/apps/openmw/mwgui/loadingscreen.cpp b/apps/openmw/mwgui/loadingscreen.cpp index 45bd5bf9d..d56c77bdd 100644 --- a/apps/openmw/mwgui/loadingscreen.cpp +++ b/apps/openmw/mwgui/loadingscreen.cpp @@ -103,6 +103,13 @@ namespace MWGui if (mMainWidget->getVisible()) return; + if (mViewer->getIncrementalCompileOperation()) + { + mViewer->getIncrementalCompileOperation()->setMaximumNumOfObjectsToCompilePerFrame(200); + // keep this in sync with loadingScreenFps + mViewer->getIncrementalCompileOperation()->setTargetFrameRate(1.0/120.0); + } + bool showWallpaper = (MWBase::Environment::get().getStateManager()->getState() == MWBase::StateManager::State_NoGame); @@ -218,8 +225,6 @@ namespace MWGui changeWallpaper(); } - mViewer->getIncrementalCompileOperation()->setMaximumNumOfObjectsToCompilePerFrame(80); - // Turn off rendering except the GUI int oldUpdateMask = mViewer->getUpdateVisitor()->getTraversalMask(); int oldCullMask = mViewer->getCamera()->getCullMask(); @@ -228,8 +233,6 @@ namespace MWGui MWBase::Environment::get().getInputManager()->update(0, true, true); - //std::cout << "num to compile " << mViewer->getIncrementalCompileOperation()->getToCompile().size() << std::endl; - mViewer->frame(); // resume 3d rendering