Update #14 - Fixed stupid mistake in the u13 FPS boost patch

This commit is contained in:
LAX1DUDE
2023-01-18 17:37:05 -08:00
parent 48ba6f6176
commit 1f8473deeb
5 changed files with 31 additions and 7 deletions

View File

@ -77,7 +77,12 @@
~ for (Score score1 : (List<Score>) arraylist1) {
> INSERT 64 : 65 @ 64
> INSERT 40 : 42 @ 40
+ GlStateManager.enableBlend();
+ GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0);
> INSERT 24 : 25 @ 24
+ this.mc.getTextureManager().bindTexture(icons);

View File

@ -138,7 +138,7 @@
> DELETE 39 @ 39 : 52
> CHANGE 4 : 41 @ 4 : 5
> CHANGE 4 : 43 @ 4 : 5
~ long framebufferAge = this.overlayFramebuffer.getAge();
~ if (framebufferAge == -1l || framebufferAge > (Minecraft.getDebugFPS() < 25 ? 125l : 75l)) {
@ -146,7 +146,9 @@
~ GlStateManager.colorMask(true, true, true, true);
~ GlStateManager.clearColor(0.0f, 0.0f, 0.0f, 0.0f);
~ GlStateManager.clear(16640);
~ GlStateManager.enableOverlayFramebufferBlending();
~ this.mc.ingameGUI.renderGameOverlay(parFloat1);
~ GlStateManager.disableOverlayFramebufferBlending();
~ this.overlayFramebuffer.endRender();
~ }
~ this.setupOverlayRendering();
@ -158,7 +160,7 @@
~ GlStateManager.bindTexture(this.overlayFramebuffer.getTexture());
~ GlStateManager.color(1.0f, 1.0f, 1.0f, 1.0f);
~ GlStateManager.enableBlend();
~ GlStateManager.blendFunc(770, 771);
~ GlStateManager.blendFunc(1, 771);
~ GlStateManager.disableAlpha();
~ GlStateManager.disableDepth();
~ GlStateManager.depthMask(false);