MCPcopy Create free account
hub / github.com/crossuo/crossuo / SetReduceFPSUnactiveWindow

Method SetReduceFPSUnactiveWindow

src/Managers/ConfigManager.cpp:713–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

711}
712
713void CConfigManager::SetReduceFPSUnactiveWindow(bool val)
714{
715 if (this == &g_ConfigManager)
716 {
717 if (val)
718 {
719 g_FrameDelay[WINDOW_INACTIVE] = FRAME_DELAY_INACTIVE_WINDOW;
720 }
721 else
722 {
723 g_FrameDelay[WINDOW_INACTIVE] = g_FrameDelay[WINDOW_ACTIVE];
724 }
725 g_GameWindow.SetRenderTimerDelay(g_FrameDelay[g_GameWindow.IsActive()]);
726 }
727
728 m_ReduceFPSUnactiveWindow = val;
729}
730
731void CConfigManager::SetConsoleNeedEnter(bool val)
732{

Callers 2

GumpOptions.cppFile · 0.80
ApplyPageChangesMethod · 0.80

Calls 2

SetRenderTimerDelayMethod · 0.80
IsActiveMethod · 0.45

Tested by

no test coverage detected