Skip to content

Commit

Permalink
Add debug screen config option
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed Aug 4, 2024
1 parent 2557aa1 commit b17f2ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/dev/tr7zw/entityculling/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public class Config {
public int sleepDelay = 10;
public int hitboxLimit = 50;
public boolean skipMarkerArmorStands = true;
public boolean showDebugScreenInfo = true;

}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void doWorldTick(TickEvent.WorldTickEvent event) {

@SubscribeEvent
public void doRenderGameOverlayEvent(RenderGameOverlayEvent.Text event) {
if (!Minecraft.getMinecraft().gameSettings.showDebugInfo) return;
if (!Minecraft.getMinecraft().gameSettings.showDebugInfo || !config.showDebugScreenInfo) return;
ArrayList<String> left = event.left;
left.add("[Culling] Last pass: " + EntityCullingModBase.instance.cullTask.lastTime + "ms");
left.add("[Culling] Rendered Block Entities: " + EntityCullingModBase.instance.renderedBlockEntities + " Skipped: " + EntityCullingModBase.instance.skippedBlockEntities);
Expand Down

0 comments on commit b17f2ff

Please sign in to comment.