-
Notifications
You must be signed in to change notification settings - Fork 0
26.2 Debug Logging and Diagnostics
Dasik edited this page Aug 20, 2026
·
1 revision
Camera Culling includes an in-game diagnostic logging and real-time state transition tracing engine to monitor exactly when and why entities are rendered or culled.
| Property | Value |
|---|---|
| Command Toggle | `/cameraculling debug [true |
| GUI Toggle | "Real-Time Debug Logging" in Engine & Diagnostics category |
| Default State |
false (Zero string allocations on hot render paths) |
| Chat Output | Color-coded §6[CC-Debug] state transition notifications |
| Log Output | SLF4J logger output under [CameraCulling Debug] tag |
[CC-Debug] §c[CULLED] §eminecraft:cow #412§7 (dist: §f18.4m§7) -> §bBlock Occlusion
[CC-Debug] §a[VISIBLE] §eminecraft:zombie #891§7 (dist: §f12.1m§7) -> §bSightline (Eyes)
[CC-Debug] §a[VISIBLE] §eminecraft:wolf #204§7 (dist: §f6.2m§7) -> §bBlacklist Immunity
[CC-Debug] §a[VISIBLE] §eminecraft:warden #102§7 (dist: §f34.8m§7) -> §bBoss Immunity
-
Sightline (Head Top)— Visible via head top raycast sample. -
Sightline (Eyes)— Visible via anatomical eye sample. -
Sightline (Upper Torso)— Visible via upper chest sample. -
Sightline (Center)— Visible via midpoint sample. -
Sightline (Flank)— Visible via perimeter flank sample. -
Proximity Safety Bubble— Within min distance margin. -
Boss Immunity— Protected by boss HP threshold or keyword. -
Blacklist Immunity— Whitelisted in client or server blacklist. -
Player / Vehicle Immunity— Local player, passenger, or mount. -
Glowing Immunity— Entity has active glowing effect. -
Crowd / Mob Overdraw Occlusion— Exceeded local cluster density cap. -
Block Occlusion— All sightline samples occluded by solid blocks.
public static boolean isDebugEnabled() {
return CameraCullingConfig.isDebugMode() || LOGGER.isDebugEnabled();
}
public static void logStateTransition(Entity entity, Vec3 camPos, boolean nowOccluded, String reason) {
if (!isDebugEnabled()) {
return; // Zero string formatting or object creation when disabled
}
...
}
Camera Culling Documentation • Part of the Vanilla Outsider Collection
Author: Dasik (Rifaditya) • Licensed under GNU General Public License v3.0 (GPLv3)
📌 Repository Source Disclaimer: The documentation in this Wiki reflects the current source code state in the repository, which may include recent unreleased commits ahead of public release builds on CurseForge/Modrinth.
- MC 26.3 Overview
- Entity Occlusion Culling
- Block Entity Culling
- Sign & Hanging Sign Culling
- Particle & Animation Culling
- Mob Crowd Overdraw Defense
- Distance Texture LOD
- Boss & Blacklist Immunity
- Temporal Hysteresis & Math
- Commands & Configuration
- GUI Configuration (YACL)
- Debug Tracing & Diagnostics
- Architecture & Mixins
- Developer Setup & Building
- API & Mod Integration
- MC 26.2 Overview
- Entity Occlusion Culling
- Block Entity Culling
- Sign & Hanging Sign Culling
- Particle & Animation Culling
- Mob Crowd Overdraw Defense
- Distance Texture LOD
- Boss & Blacklist Immunity
- Temporal Hysteresis & Math
- Commands & Configuration
- GUI Configuration (YACL)
- Debug Tracing & Diagnostics
- Architecture & Mixins
- Developer Setup & Building
- API & Mod Integration
- MC 26.1.2 Overview
- Entity Occlusion Culling
- Block Entity Culling
- Sign & Hanging Sign Culling
- Particle & Animation Culling
- Mob Crowd Overdraw Defense
- Distance Texture LOD
- Boss & Blacklist Immunity
- Temporal Hysteresis & Math
- Commands & Configuration
- GUI Configuration (YACL)
- Debug Tracing & Diagnostics
- Architecture & Mixins
- Developer Setup & Building
- API & Mod Integration