Fix debug overlay vsync on windows
This commit is contained in:
parent
565bef5896
commit
9aad2c0ec8
|
@ -883,7 +883,13 @@ int main(int argc, char** argv)
|
||||||
app->debugOverlay.maxEntries = 200;
|
app->debugOverlay.maxEntries = 200;
|
||||||
oc_arena_init(&app->debugOverlay.logArena);
|
oc_arena_init(&app->debugOverlay.logArena);
|
||||||
|
|
||||||
|
#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(app->debugOverlay.surface, 0);
|
||||||
|
#else
|
||||||
oc_surface_swap_interval(app->debugOverlay.surface, 1);
|
oc_surface_swap_interval(app->debugOverlay.surface, 1);
|
||||||
|
#endif
|
||||||
|
|
||||||
oc_surface_deselect();
|
oc_surface_deselect();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue