forked from LeenkxTeam/LNXSDK
Update Kha/Sources/kha/Scheduler.hx
This commit is contained in:
parent
e733dca053
commit
f00cef2e21
@ -51,7 +51,7 @@ class Scheduler {
|
||||
static var vsync: Bool;
|
||||
|
||||
// Html5 target can update display frequency after some delay
|
||||
#if kha_html5
|
||||
#if (kha_html5 || kha_debug_html5)
|
||||
static var onedifhz(get, never): Float;
|
||||
|
||||
static inline function get_onedifhz(): Float {
|
||||
@ -97,7 +97,7 @@ class Scheduler {
|
||||
|
||||
public static function start(restartTimers: Bool = false): Void {
|
||||
vsync = Window.get(0).vSynced;
|
||||
#if !kha_html5
|
||||
#if (kha_html5 || kha_debug_html5)
|
||||
var hz = Display.primary != null ? Display.primary.frequency : 60;
|
||||
if (hz >= 57 && hz <= 63)
|
||||
hz = 60;
|
||||
|
Loading…
x
Reference in New Issue
Block a user