From 24ab63026621bef0eabac74c40fe75850ffc43f3 Mon Sep 17 00:00:00 2001 From: Reuben Dunnington Date: Sat, 16 Sep 2023 10:26:27 -0700 Subject: [PATCH] disable the manual vsync on win32 --- src/runtime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime.c b/src/runtime.c index 9d2d3d7..7913d78 100644 --- a/src/runtime.c +++ b/src/runtime.c @@ -232,7 +232,7 @@ i32 orca_surface_callback(void* user) #if OC_PLATFORM_WINDOWS //NOTE(martin): on windows we set all surfaces to non-synced, and do a single "manual" wait here. // on macOS each surface is individually synced to the monitor refresh rate but don't block each other - oc_surface_swap_interval(data->surface, 0); + // oc_surface_swap_interval(data->surface, 0); #endif //NOTE: this will be called on main thread, so we need to deselect the surface here, @@ -896,7 +896,7 @@ i32 orca_runloop(void* user) #if OC_PLATFORM_WINDOWS //NOTE(martin): on windows we set all surfaces to non-synced, and do a single "manual" wait here. // on macOS each surface is individually synced to the monitor refresh rate but don't block each other - oc_vsync_wait(app->window); + // oc_vsync_wait(app->window); #endif }