Skip to content

Commit

Permalink
update max fps to 60 for 2-3 instances
Browse files Browse the repository at this point in the history
  • Loading branch information
Jab125 committed Oct 12, 2024
1 parent 9292387 commit 04f20dc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/dev/jab125/hotjoin/HotJoin.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
import org.apache.commons.lang3.ArrayUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import wily.legacy.client.screen.Assort;
import wily.legacy.util.ScreenUtil;

import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -107,9 +109,9 @@ public static void arrangeWindows() {
int height = bestMonitor.getCurrentMode().getHeight();
int maxFps;
if (wrappeds.size() >= 4) {
maxFps = 15;
} else if (wrappeds.size() >= 2) {
maxFps = 30;
} else if (wrappeds.size() >= 2) {
maxFps = 60;
} else {
maxFps = 60;
}
Expand Down Expand Up @@ -427,6 +429,8 @@ public void copyFolderRecursive(Path path) throws IOException {
}
};
try {
Minecraft.getInstance().options.save();
Assort.save();
pathTransfer.copyFile(Path.of("resource_assorts.json"));
pathTransfer.clearDirectoryRecursive(Path.of("resource_assorts"));
pathTransfer.copyFolderRecursive(Path.of("resource_assorts"));
Expand Down

0 comments on commit 04f20dc

Please sign in to comment.