Compare commits

...

1 Commits

Author SHA1 Message Date
Reuben Dunnington 24ab630266
disable the manual vsync on win32 2023-09-16 10:26:27 -07:00
1 changed files with 2 additions and 2 deletions

View File

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