Skip to content

Commit

Permalink
Merge pull request #108 from LostLuma/special-case-60-limit
Browse files Browse the repository at this point in the history
Special case suspend limit of 60 FPS to fix other mods' rendering
  • Loading branch information
LostLuma authored Sep 4, 2023
2 parents 17b8bca + b74633f commit 36aacdf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/dynamic_fps/impl/DynamicFPSMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,13 @@ private static boolean checkForRender(long timeSinceLastRender) {
return frameRateTarget == -1;
}

// Minecraft is limited to 60,
// No need to cancel some frames.
// Fixes #107 (Xaero's World Map)
if (frameRateTarget == 60) {
return true;
}

// Render one more frame before
// Applying the custom frame rate
// So changes show up immediately
Expand Down

0 comments on commit 36aacdf

Please sign in to comment.