private void func_181554_e() { GlStateManager.disableDepth(); FrameTimer frametimer = this.mc.func_181539_aj(); int i = frametimer.func_181749_a(); int j = frametimer.func_181750_b(); long[] along = frametimer.func_181746_c(); ScaledResolution scaledresolution = new ScaledResolution(this.mc); int k = i; int l = 0; drawRect(0, scaledresolution.getScaledHeight() - 60, 240, scaledresolution.getScaledHeight(), -1873784752); while (k != j) { int i1 = frametimer.func_181748_a(along[k], 30); int j1 = this.func_181552_c(MathHelper.clamp_int(i1, 0, 60), 0, 30, 60); this.drawVerticalLine(l, scaledresolution.getScaledHeight(), scaledresolution.getScaledHeight() - i1, j1); ++l; k = frametimer.func_181751_b(k + 1); } drawRect(1, scaledresolution.getScaledHeight() - 30 + 1, 14, scaledresolution.getScaledHeight() - 30 + 10, -1873784752); this.fontRenderer.drawString("60", 2, scaledresolution.getScaledHeight() - 30 + 2, 14737632); this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 30, -1); drawRect(1, scaledresolution.getScaledHeight() - 60 + 1, 14, scaledresolution.getScaledHeight() - 60 + 10, -1873784752); this.fontRenderer.drawString("30", 2, scaledresolution.getScaledHeight() - 60 + 2, 14737632); this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60, -1); this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 1, -1); this.drawVerticalLine(0, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1); this.drawVerticalLine(239, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1); if (this.mc.gameSettings.limitFramerate <= 120) { this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60 + this.mc.gameSettings.limitFramerate / 2, -16711681); } GlStateManager.enableDepth(); }
private void renderLagometer() { GlStateManager.disableDepth(); FrameTimer frametimer = this.mc.getFrameTimer(); int i = frametimer.getLastIndex(); int j = frametimer.getIndex(); long[] along = frametimer.getFrames(); ScaledResolution scaledresolution = new ScaledResolution(this.mc); int k = i; int l = 0; drawRect(0, scaledresolution.getScaledHeight() - 60, 240, scaledresolution.getScaledHeight(), -1873784752); while (k != j) { int i1 = frametimer.getLagometerValue(along[k], 30); int j1 = this.getFrameColor(MathHelper.clamp(i1, 0, 60), 0, 30, 60); this.drawVerticalLine(l, scaledresolution.getScaledHeight(), scaledresolution.getScaledHeight() - i1, j1); ++l; k = frametimer.parseIndex(k + 1); } drawRect(1, scaledresolution.getScaledHeight() - 30 + 1, 14, scaledresolution.getScaledHeight() - 30 + 10, -1873784752); this.fontRenderer.drawString("60", 2, scaledresolution.getScaledHeight() - 30 + 2, 14737632); this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 30, -1); drawRect(1, scaledresolution.getScaledHeight() - 60 + 1, 14, scaledresolution.getScaledHeight() - 60 + 10, -1873784752); this.fontRenderer.drawString("30", 2, scaledresolution.getScaledHeight() - 60 + 2, 14737632); this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60, -1); this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 1, -1); this.drawVerticalLine(0, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1); this.drawVerticalLine(239, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1); if (this.mc.gameSettings.limitFramerate <= 120) { this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60 + this.mc.gameSettings.limitFramerate / 2, -16711681); } GlStateManager.enableDepth(); }
public void renderLagometer() { GlStateManager.disableDepth(); FrameTimer frametimer = this.mc.getFrameTimer(); int i = frametimer.getLastIndex(); int j = frametimer.getIndex(); long[] along = frametimer.getFrames(); ScaledResolution scaledresolution = new ScaledResolution(this.mc); int k = i; int l = 0; drawRect(0, scaledresolution.getScaledHeight() - 60, 240, scaledresolution.getScaledHeight(), -1873784752); while (k != j) { int i1 = frametimer.getLagometerValue(along[k], 30); int j1 = this.getFrameColor(MathHelper.clamp_int(i1, 0, 60), 0, 30, 60); this.drawVerticalLine(l, scaledresolution.getScaledHeight(), scaledresolution.getScaledHeight() - i1, j1); ++l; k = frametimer.parseIndex(k + 1); } drawRect(1, scaledresolution.getScaledHeight() - 30 + 1, 14, scaledresolution.getScaledHeight() - 30 + 10, -1873784752); this.fontRenderer.drawString("60", 2, scaledresolution.getScaledHeight() - 30 + 2, 14737632); this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 30, -1); drawRect(1, scaledresolution.getScaledHeight() - 60 + 1, 14, scaledresolution.getScaledHeight() - 60 + 10, -1873784752); this.fontRenderer.drawString("30", 2, scaledresolution.getScaledHeight() - 60 + 2, 14737632); this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60, -1); this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 1, -1); this.drawVerticalLine(0, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1); this.drawVerticalLine(239, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1); if (this.mc.gameSettings.limitFramerate <= 120) { this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60 + this.mc.gameSettings.limitFramerate / 2, -16711681); } GlStateManager.enableDepth(); }
public FrameTimer func_181539_aj() { return this.field_181542_y; }
/** * Return the FrameTimer's instance */ public FrameTimer getFrameTimer() { return this.frameTimer; }