From 394b3139b5e1fa5e2bbba44df19dbc7a9952244f Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Fri, 5 Jan 2018 12:56:19 +0300 Subject: [PATCH] Show info if your game has problems with sync #497 refresh rate is 59 on UWP for some reason --- build/uwp/tic/tic.vcxproj.user | 2 +- src/studio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/uwp/tic/tic.vcxproj.user b/build/uwp/tic/tic.vcxproj.user index 4518406..92e604f 100644 --- a/build/uwp/tic/tic.vcxproj.user +++ b/build/uwp/tic/tic.vcxproj.user @@ -24,7 +24,7 @@ XboxOne - UWPRemoteDebugger + AppHostLocalDebugger XboxOne diff --git a/src/studio.c b/src/studio.c index ce97af2..686cb16 100644 --- a/src/studio.c +++ b/src/studio.c @@ -2792,7 +2792,7 @@ s32 main(s32 argc, char **argv) SDL_GetRendererInfo(studio.renderer, &info); SDL_GetCurrentDisplayMode(SDL_GetWindowDisplayIndex(studio.window), &mode); - useDelay = !(info.flags & SDL_RENDERER_PRESENTVSYNC) || mode.refresh_rate != TIC_FRAMERATE; + useDelay = !(info.flags & SDL_RENDERER_PRESENTVSYNC) || mode.refresh_rate > TIC_FRAMERATE; } u64 nextTick = SDL_GetPerformanceCounter();