1
0
mirror of https://github.com/sm64pc/sm64pc.git synced 2025-04-12 00:05:59 +02:00

fix 60fps patch (thanks SpacingBat3)

This commit is contained in:
fgsfds 2020-09-07 22:19:07 +03:00
parent fb22013eab
commit dcc16eaed7

View File

@ -1906,7 +1906,7 @@ index 25c9f06..a6461ae 100644
if (enabled) {
// try to detect refresh rate
SDL_GL_SetSwapInterval(1);
- const int vblanks = test_vsync();
- const int vblanks = gCLIOpts.SyncFrames ? (int)gCLIOpts.SyncFrames : test_vsync();
+ int vblanks = test_vsync();
+ if (vblanks & 1)
+ vblanks = 0; // not divisible by 60, fuck that