Notes
vendor/sh4_math.hlives inshachi/vendor/— unmodified public domain file.- KOS’s
mat_transform()already does bulk FTRV. Shachi adds perspective divide and normalize. - All batch functions should be written in SH4 asm with proper
pipeline hazard mitigation (see
codex/hardware/SH4_TIMING.md).
Spec 3: DC Native
Asset Formats (shachi/assets.h)
Problem
Runtime format conversion (PNG→PVR texture, OBJ→triangle strip) wastes precious SH-4 cycles. The Katana SDK solved this with offline conversion tools (PVRConv, GDWorkshop). Shachi needs a build-time pipeline that produces DC-native formats, and runtime loaders that can memcpy them straight to VRAM.