5 Commits
Author SHA1 Message Date
901ea27228 Diagnostics read once (SBC_ENV): the game thread 2.9x faster; M_19_02's black screen explained (#16)
Seventeen diagnostic switches called getenv per draw or per frame; on Windows
getenv takes the environment lock and scans it: 64% of the game thread on
M_19_03. SBC_ENV reads each once (6.0 s -> 2.1 s for 300 frames there).

M_19_02 stays black because, warped to from the story's opening, it does not
fit in memory: 7.4 MB of its DAT spill into the main heap and MapInitSystem's
pools come out empty ("MemblkInit: Memory Alloc Error !"), the task pool among
them, so the map script (player, fade-in) never starts. The game's own
allocations over the same files; notes in docs/RECOMP_NOTES.md.

SBC_TRACE_ENTRANCES lists a map's places; SBC_TRACE_PRINTF / LOADS / TEXREAD no
longer need SBC_PROBE.

Co-authored-by: Thomas Martin <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-30 18:29:58 +01:00
Thomas MartinandClaude Opus 5.5 504146fa8c In game: the first map in 3D, models drawn natively (rigid, prelit, skinned) with their lighting
BozoEngine d937cae (TheBozos/BozoEngine#170, native sceSifGetOtherData): the game's file loader takes every file back
from its IOP buffer, so the map's models and textures load (they were zeros) and the opening scene goes on.
runtime/sbc_3d.cpp: IMD types 72 and 73 answered (strip flags, a prelit colour for 73), type 88 skinned at a native
site after the driver's bone matrices, the VU program's lights applied where the primitive asks, alpha test and TCC.
The kick no longer marks a FINISH as missed. Probes print the game's debug messages and loader requests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-29 14:51:31 +01:00
Thomas MartinandClaude Opus 5.5 4c7cb2c9ec 3D groundwork: the IMD library mapped, probes for its primitive types, RAM snapshots
The first 3D scene draws through the IMD library: ImdCallPrimDrv (0x22e9a0) dispatches each primitive's type to the
drivers ImdSetPrimDrv registered; types 72 and 73 are the geometry (prebuilt VIF batches of triangle strips, three
V4-16 vectors a vertex). SBC_PROBE also lists the types, modes and drivers a scene uses; SBC_DUMP_RAM=<kick> writes
guest RAM for tools/sbc_imd_dump.py.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-29 14:03:26 +01:00
Thomas MartinandClaude Opus 5.5 bd84d78aad Title screen and main menu drawn natively: the game's sprite calls and its TIM2 textures
g2dSpriteSetPkt is answered from the sprite records (the game's transform redone, the quad kept with its packet bucket
and drawn in bucket order at the kick); textures are decoded from the TEXimage's own transfer (BITBLTBUF, TRXREG, the
DMA REF to the TIM2 data), indexed formats through the CLUT in CSM1 order. No GIF packet is read, no GS memory kept.
START on the title opens the main menu. Probes (SBC_PROBE) count the game's 2D and texture calls; README screenshots.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-29 13:27:07 +01:00
Thomas MartinandClaude Opus 5.5 fc89336963 Past the render scheduler: the frame's kick native, graphics register sites, the stream names, movies skipped
The frame's DMA kick (VIF1 CHCR at 0x25f0dc) is a native site that answers the GS FINISH at once and ends the host
frame; the graphics registers the game's own code touches are native sites (CSR, the channel 2 TTE clears, the display
registers). The EE stream functions are named (sceCdStream wrappers by sub-command); the intro movies are skipped
until the engine runs libmpeg's callbacks on the calling thread. 3000 frames run to a 2D screen. BozoEngine at e670962
(ReferSemaStatus, TheBozos/BozoEngine#166).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-29 12:53:45 +01:00