Update Kha/Sources/kha/Scheduler.hx

This commit is contained in:
LeenkxTeam 2025-05-13 19:40:30 +00:00
parent e733dca053
commit f00cef2e21

View File

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