mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-12 07:16:49 +01:00
Fix fps not decreasing when windows not in focus.
This commit is contained in:
parent
38f34d6796
commit
11c2b68def
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ _FILE_DROPPED = false;
|
||||||
|
|
||||||
var foc = window_has_focus();
|
var foc = window_has_focus();
|
||||||
//if(HOVER && instance_exists(HOVER) && HOVER.window != noone)
|
//if(HOVER && instance_exists(HOVER) && HOVER.window != noone)
|
||||||
|
if(PREFERENCES.multi_window)
|
||||||
foc = true;
|
foc = true;
|
||||||
|
|
||||||
game_set_speed(foc || IS_PLAYING? PREFERENCES.ui_framerate : PREFERENCES.ui_framerate_non_focus, gamespeed_fps);
|
game_set_speed(foc || IS_PLAYING? PREFERENCES.ui_framerate : PREFERENCES.ui_framerate_non_focus, gamespeed_fps);
|
||||||
|
|
Loading…
Reference in a new issue