Merge pull request #204 from Splendide-Imaginarius/mkxp-z-fps

Remove framerate restrictions
This commit is contained in:
Splendide Imaginarius 2024-08-01 23:49:06 +00:00 committed by GitHub
commit 1462dc9623
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;