use syncToRefreshRate normally on macOS again

This commit is contained in:
Struma 2022-01-20 15:34:48 -05:00
parent d82220fb99
commit 6266670997
2 changed files with 1 additions and 7 deletions

View file

@ -88,7 +88,7 @@ Binding controller buttons on macOS is slightly different depending on which ver
+ **Start/Select (Options/Share, Menu/Back, Plus/Minus)**: macOS Catalina 10.15+
+ **Home (Guide, PS)**: macOS Big Sur 11.0+
Technically, while SDL itself might support these buttons, the keybinding menu had to be rewritten in Cocoa in a hurry, as switching away from native OpenGL broke the original keybinding menu. (ANGLE is used instead, to prevent crashing on Apple Silicon releases of macOS, and to help mkxp switch to Metal in the future)
Technically, while SDL itself might support these buttons, the keybinding menu had to be rewritten in Cocoa in a hurry, as switching away from native OpenGL broke the original keybinding menu. (ANGLE is used instead, to prevent crashing on Apple Silicon releases of macOS, and to help mkxp switch to Metal)
## Fonts

View file

@ -624,13 +624,7 @@ Graphics::Graphics(RGSSThreadData *data) {
p = new GraphicsPrivate(data);
if (data->config.syncToRefreshrate) {
p->frameRate = data->refreshRate;
#if defined(__APPLE__) && defined(GLES2_HEADER)
// VSync seems to be broken at the moment, could be anywhere in the
// GLES -> ANGLE -> OpenGL -> Metal (if Apple Silicon) translation
p->fpsLimiter.setDesiredFPS(data->refreshRate);
#else
p->fpsLimiter.disabled = true;
#endif
} else if (data->config.fixedFramerate > 0) {
p->fpsLimiter.setDesiredFPS(data->config.fixedFramerate);
} else if (data->config.fixedFramerate < 0) {