fps
This commit is contained in:
parent
70c63a31e8
commit
040d376c6e
|
@ -139,11 +139,7 @@ window.addEventListener("load", () => {
|
||||||
<body style="margin:0px;width:100vw;height:100vh;overflow:hidden;" id="game_frame">
|
<body style="margin:0px;width:100vw;height:100vh;overflow:hidden;" id="game_frame">
|
||||||
<div id = "dividk">
|
<div id = "dividk">
|
||||||
<h1 id="clienttitle">Resent Client</h1>
|
<h1 id="clienttitle">Resent Client</h1>
|
||||||
<h2 id="clientversion">3.5</h2>
|
<h2 id="clientversion">3.6</h2>
|
||||||
<p id="progresstext">0%</p>
|
|
||||||
<div id="meter">
|
|
||||||
<span style="width: 0%" id="progress"></span>
|
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
17719
javascript/classes.js
17719
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -17,6 +17,7 @@ public class FPSOptions extends Mod{
|
||||||
public BooleanSetting blockEffects = new BooleanSetting("Remove block effects", "", true);
|
public BooleanSetting blockEffects = new BooleanSetting("Remove block effects", "", true);
|
||||||
public BooleanSetting limit = new BooleanSetting("Limit particles", "", true);
|
public BooleanSetting limit = new BooleanSetting("Limit particles", "", true);
|
||||||
public BooleanSetting lowTick = new BooleanSetting("Low animation", "", true);
|
public BooleanSetting lowTick = new BooleanSetting("Low animation", "", true);
|
||||||
|
public BooleanSetting lightUpdates = new BooleanSetting("Light updates", "", false);
|
||||||
public CustomRectSettingDraw minSetting = new CustomRectSettingDraw("Minimal settings", ""){
|
public CustomRectSettingDraw minSetting = new CustomRectSettingDraw("Minimal settings", ""){
|
||||||
@Override
|
@Override
|
||||||
public void onChange(){
|
public void onChange(){
|
||||||
|
@ -51,7 +52,7 @@ public class FPSOptions extends Mod{
|
||||||
//public BooleanSetting delay = new BooleanSetting("Chunk delay", "", false);
|
//public BooleanSetting delay = new BooleanSetting("Chunk delay", "", false);
|
||||||
|
|
||||||
public FPSOptions(){
|
public FPSOptions(){
|
||||||
addSetting(batchRendering, minSetting);
|
addSetting(batchRendering, blockEffects, limit, lowTick, lightUpdates, minSetting);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -243,10 +243,8 @@ public class ClickGUI extends GuiScreen {
|
||||||
if(dragging) {
|
if(dragging) {
|
||||||
sliderOffset = mouseX-(width-150);
|
sliderOffset = mouseX-(width-150);
|
||||||
ss.setValue(sliderOffset*(ss.max/100));
|
ss.setValue(sliderOffset*(ss.max/100));
|
||||||
}
|
}else {
|
||||||
|
sliderOffset = (int) ((ss.getValue() * 100)/ss.max);
|
||||||
if(!dragging) {
|
|
||||||
sliderOffset = (int) ((ss.getValue() * 100)/ss.max);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(sliderOffset < 0) {
|
if(sliderOffset < 0) {
|
||||||
|
@ -254,7 +252,7 @@ public class ClickGUI extends GuiScreen {
|
||||||
sliderOffset = 0;
|
sliderOffset = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(width-141+sliderOffset > width-50) {
|
if(sliderOffset > 101) {
|
||||||
dragging = false;
|
dragging = false;
|
||||||
sliderOffset = 100;
|
sliderOffset = 100;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1011,7 +1011,7 @@ public class EntityRenderer implements IResourceManagerReloadListener {
|
||||||
|
|
||||||
public void renderWorld(float partialTicks, long finishTimeNano) {
|
public void renderWorld(float partialTicks, long finishTimeNano) {
|
||||||
long framebufferAge = this.overlayFramebuffer.getAge();
|
long framebufferAge = this.overlayFramebuffer.getAge();
|
||||||
if (framebufferAge == -1l || framebufferAge > (Minecraft.getDebugFPS() < 25 ? 125l : 75l)) {
|
if (ModManager.fpsOptions.lightUpdates.getValue() && framebufferAge == -1l || framebufferAge > (Minecraft.getDebugFPS() < 25 ? 125l : 75l)) {
|
||||||
this.updateLightmap(partialTicks);
|
this.updateLightmap(partialTicks);
|
||||||
}
|
}
|
||||||
if (this.mc.getRenderViewEntity() == null) {
|
if (this.mc.getRenderViewEntity() == null) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user