misc fixes
This commit is contained in:
parent
cfcb590574
commit
00ac4146bc
8 changed files with 119 additions and 116 deletions
|
@ -581,7 +581,7 @@ public class Client implements IThreadListener {
|
|||
@Variable(name = "chunk_build_time", category = CVarCategory.RENDER, min = 1, max = 100, display = "Zeit für Chunk-Bau", unit = "ms")
|
||||
public int maxBuildTime = 8;
|
||||
@Variable(name = "chunk_light_updates", category = CVarCategory.RENDER, min = 0, max = 10000, display = "Licht-Updates / Frame")
|
||||
private int lightUpdates = 150;
|
||||
private int lightUpdates = 300;
|
||||
@Variable(name = "chunk_light_range", category = CVarCategory.RENDER, min = 5, max = 512, display = "Radius Licht-Updates")
|
||||
private int lightRange = 32;
|
||||
@Variable(name = "draw_fov", category = CVarCategory.RENDER, min = 20.0f, max = 160.0f, display = "Sichtfeld (FOV)", unit = "°", precision = 1)
|
||||
|
@ -610,6 +610,8 @@ public class Client implements IThreadListener {
|
|||
private int scaleVar = 1;
|
||||
@Variable(name = "gui_scale_items", category = CVarCategory.GUI, display = "Gegenstände vergrößern", callback = ItemRedrawFunction.class)
|
||||
public boolean scaleItems = true;
|
||||
@Variable(name = "gui_scale_items_always", category = CVarCategory.GUI, display = "Immer vergrößern", callback = ItemRedrawFunction.class)
|
||||
public boolean scaleItemsAlways = false;
|
||||
@Variable(name = "gui_scale_hotbar", category = CVarCategory.GUI, display = "Leiste vergrößern")
|
||||
public boolean scaleHotbar = true;
|
||||
@Variable(name = "hud_margin", category = CVarCategory.GUI, min = 0, max = 120, unit = "px", display = "Seitenabstand der HUD")
|
||||
|
@ -2512,6 +2514,7 @@ public class Client implements IThreadListener {
|
|||
PerfSection.TICK.enter();
|
||||
this.doTicks();
|
||||
PerfSection.UPDATE.enter();
|
||||
this.update();
|
||||
PerfSection.RENDER.enter();
|
||||
this.render();
|
||||
PerfSection.GUI.enter();
|
||||
|
@ -2700,7 +2703,9 @@ public class Client implements IThreadListener {
|
|||
this.tickFraction = ((double)this.tick_torun) / 1000000.0;
|
||||
this.tick_ttime += this.tick_ftime;
|
||||
this.tick_time = this.tickFrame != 0 ? (this.tick_ftime / (long)this.tickFrame) : 0L;
|
||||
|
||||
}
|
||||
|
||||
private void update() {
|
||||
if(this.player != null) {
|
||||
int radius = Math.min(this.renderDistance * 16, this.lightRange);
|
||||
for(int n = 0; n < this.lightUpdates; n++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue