restore screenvisible check (fix CPU usage when window is minimized)

This commit is contained in:
Roman Fomin 2024-11-12 13:56:17 +07:00
parent 597ff71791
commit 1b8cb0d888

View File

@ -747,7 +747,7 @@ void TryRunTics(void)
// [AM] If we've uncapped the framerate and there are no tics
// to run, return early instead of waiting around.
#define return_early (uncapped && counts == 0)
#define return_early (uncapped && counts == 0 && screenvisible)
// get real tics
entertic = I_GetTime() / ticdup;