mirror of
https://github.com/Thracky/GlosSI.git
synced 2024-11-03 09:40:18 +00:00
restrict framerate if overlay isn't shown
This commit is contained in:
parent
4caaa3f1bc
commit
70c1a7917d
@ -145,7 +145,10 @@ void SteamTargetRenderer::RunSfWindowLoop()
|
||||
if (bDrawOverlay)
|
||||
SetWindowPos(sfWindow.getSystemHandle(), HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_ASYNCWINDOWPOS);
|
||||
else
|
||||
{
|
||||
ShowWindow(consoleHwnd, SW_SHOW);
|
||||
sfWindow.setFramerateLimit(1); //Window is not shown anyway,
|
||||
}
|
||||
|
||||
|
||||
while (sfWindow.isOpen() && bRunLoop)
|
||||
|
Loading…
Reference in New Issue
Block a user