Show info if your game has problems with sync #497

refresh rate is 59 on UWP for some reason
This commit is contained in:
BADIM-PC\Vadim 2018-01-05 12:56:19 +03:00
parent 9c20b3a2f3
commit 394b3139b5
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<DebuggerMachineName>XboxOne</DebuggerMachineName>
<DebuggerFlavor>UWPRemoteDebugger</DebuggerFlavor>
<DebuggerFlavor>AppHostLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<DebuggerMachineName>XboxOne</DebuggerMachineName>

View File

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