Skip to content

Commit

Permalink
Merge pull request #1 from Chissl/reducefps
Browse files Browse the repository at this point in the history
Reducefps
  • Loading branch information
Chissl authored Jul 9, 2024
2 parents 9714248 + 2adb3ee commit c0b05a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/club/sk1er/patcher/config/PatcherConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public class PatcherConfig extends Config {
name = "Unfocused FPS Amount",
description = "Change the maximum FPS when you're not tabbed into the window, saving resources.",
category = "Miscellaneous", subcategory = "General",
min = 15, max = 240
min = 1, max = 240
)
public static int unfocusedFPSAmount = 60;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class MinecraftMixin_FpsLimit {
}

if (!Display.isActive() && PatcherConfig.unfocusedFPS) {
cir.setReturnValue(PatcherConfig.unfocusedFPSAmount);
cir.setReturnValue(2);
} else if (PatcherConfig.customFpsLimit > 0) {
cir.setReturnValue(PatcherConfig.customFpsLimit);
}
Expand Down

0 comments on commit c0b05a8

Please sign in to comment.