Debug Overlay Module (shachi_debug.h/c)
Reusable. Drop into any KOS project.
shachi_debug_init();
shachi_debug_toggle(buttons); // L+R toggle
shachi_debug_draw(); // Renders if enabled
Reads 10 PVR2 registers via PVR_GET(): - TA_OPB_POS (0x0134), TA_OPB_END (0x012C), TA_VERTBUF_POS (0x0138) - ISP_FEED_CFG (0x00A0), BGPLANE_Z (0x0088) - FOG_DENSITY (0x00B8), FOG_TABLE_COLOR (0x00B0) - CHEAP_SHADOW (0x0074), OBJECT_CLIP (0x0078), SYNC_STATUS (0x010C)
Menu System
SHACHI-PROBE v0.1
> [1] Near-Z Clipping (DIV-001)
[2] Depth Precision (DIV-002)
[3] Twiddle Bit Order (DIV-003)
[4] Transparency Sort (DIV-004)
[5] OPB Overflow (DIV-005)
[6] Performance (DIV-007)
[7] Mixed Submission (DIV-008)
[D] Debug Overlay (Toggle)
A=Select B=Back START=Exit