1
0
Fork 0

debug overlay improvements

This commit is contained in:
Sen 2025-09-07 10:31:37 +02:00
parent 6c34d24b8c
commit f70f3ad450
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
2 changed files with 3 additions and 7 deletions

View file

@ -2095,9 +2095,8 @@ public class Client implements IThreadListener {
// "MS: " + (
// this.connected != null ? this.connected : "[???]"))),
this.renderer.getDebugInfoRenders() + "\n" +
this.renderer.getDebugInfoEntities() + "\n" +
"Partikel: " + this.effectRenderer.getParticleCount() + ", O: " + this.entities.size() + "\n" +
"Chunk-Cache: " + this.chunkMapping.getNumHashElements() + "\n" +
"Objekte: " + this.entities.size() + ", P: " + this.effectRenderer.getParticleCount() + ", C: " + this.chunkMapping.getNumHashElements() + ", " +
this.renderer.getDebugInfoEntities() + "\n" +
String.format("XYZ: %.3f / %.3f / %.3f", this.viewEntity.posX,
this.viewEntity.getEntityBoundingBox().minY, this.viewEntity.posZ) + "\n" +
String.format("Block: %d %d %d, R: '%s/%s'", pos.getX(), pos.getY(), pos.getZ(),

View file

@ -2306,12 +2306,9 @@ public class Renderer {
/* this.gm.renderChunksMany ? "(s) " : "", */ this.renderDistanceChunks, this.renderDispatcher.getDebugInfo());
}
/**
* Gets the entities info for use on the Debug screen
*/
public String getDebugInfoEntities()
{
return "Objekte: " + this.countEntitiesRendered + "/" + this.countEntitiesTotal + ", V: " + this.countEntitiesHidden + ", I: " + (this.countEntitiesTotal - this.countEntitiesHidden - this.countEntitiesRendered);
return "R: " + this.countEntitiesRendered + ", V: " + this.countEntitiesHidden + ", I: " + (this.countEntitiesTotal - this.countEntitiesHidden - this.countEntitiesRendered);
}
private void setupTerrain(Entity viewEntity, double partialTicks, int frameCount, boolean playerSpectator)