mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 05:55:31 +02:00
use syncToRefreshRate normally on macOS again
This commit is contained in:
parent
d82220fb99
commit
6266670997
2 changed files with 1 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue