From 568abc7b26714fc4092c8641bf1dd3891908619e Mon Sep 17 00:00:00 2001 From: Splendide Imaginarius <119545140+Splendide-Imaginarius@users.noreply.github.com> Date: Mon, 29 Jul 2024 01:16:21 +0000 Subject: [PATCH] Remove framerate restrictions If game devs want to use framerates outside of Enterbrain's arbitrary restrictions, there's no reason for us to prevent it. Same reason we don't restrict the resolution. Fixes https://github.com/mkxp-z/mkxp-z/issues/64 --- src/display/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display/graphics.cpp b/src/display/graphics.cpp index a11b85d07..102d1c35f 100644 --- a/src/display/graphics.cpp +++ b/src/display/graphics.cpp @@ -1358,7 +1358,7 @@ DEF_ATTR_RD_SIMPLE(Graphics, FrameRate, int, p->frameRate) DEF_ATTR_SIMPLE(Graphics, FrameCount, int, p->frameCount) void Graphics::setFrameRate(int value) { - p->frameRate = clamp(value, 10, 120); + p->frameRate = std::max(value, 1); if (p->threadData->config.syncToRefreshrate) return;