mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-20 19:39:41 +00:00
IncrementalCompileOperation tweak
This commit is contained in:
parent
cf0fc43004
commit
5db0639983
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue