Skip to content

Commit

Permalink
Remove framerate restrictions
Browse files Browse the repository at this point in the history
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 mkxp-z#64
  • Loading branch information
Splendide-Imaginarius committed Jul 29, 2024
1 parent 3376730 commit 568abc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 568abc7

Please sign in to comment.