mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
temp fix for broken vsync on macOS
This commit is contained in:
parent
1683483170
commit
03a9636105
1 changed files with 6 additions and 0 deletions
|
@ -609,7 +609,13 @@ Graphics::Graphics(RGSSThreadData *data) {
|
|||
#ifndef MKXPZ_STATIC_FRAMERATE
|
||||
if (data->config.syncToRefreshrate) {
|
||||
p->frameRate = data->refreshRate;
|
||||
#if defined(__MACOSX__) && 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