Skip to content

Commit

Permalink
Limit FPS to 20 while in world loading screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Meldexun committed Mar 11, 2023
1 parent e347b84 commit c903c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/meldexun/renderlib/mixin/MixinMinecraft.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void isFramerateLimitBelowMax(CallbackInfoReturnable<Boolean> info) {

@Redirect(method = "launchIntegratedServer", at = @At(value = "INVOKE", target = "Ljava/lang/Thread;sleep(J)V"))
public void launchIntegratedServer_sleep(long millis) {
Display.sync(RenderLibConfig.mainMenuFPS);
Display.sync(20);
}

@Inject(method = "init", at = @At(value = "INVOKE", target = "Lnet/minecraftforge/fml/client/FMLClientHandler;finishMinecraftLoading()V", remap = false, shift = Shift.AFTER))
Expand Down

0 comments on commit c903c2d

Please sign in to comment.