2
0
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:
Peter Repukat 2017-11-12 01:43:36 +01:00
parent 4caaa3f1bc
commit 70c1a7917d

View File

@ -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)