Files
mandy/tools/rpf9dump
EdouardSence 62eedd84b1 rpf9dump: use every core for scan validation, model/texture export, texture pools and audio
Each mode ran on one thread, so the assets stage left the rest of the CPU idle (levels.rpf models took 46 min
on a 16-thread machine). Core's readers open their own read handle per call (ReadResourceData, RecoverAtOffsets,
TtpfReader.CreateDds, AwcInfo.Inspect, AwcRecovery.WriteXmaWave), so the work splits across threads:

- scan validation: 32-offset chunks in parallel, indexes reassigned in offset order as before
- models/textures: entries decoded and written in parallel in batches of 1,024; rows, counters and failure
  messages are taken in list order, so the manifest and the log match a one-thread run
- ttpf, xma, audio manifest rows: per texture / bank in parallel, rows kept in source order

Outputs are byte-identical to the one-thread build (diff -r on shared_minigame000 models and textures, and a
texture pool). models shared_minigame000: 34 s -> 7 s; ttdb_terrain_image_based: 8 s -> 1 s.
2026-11-22 12:30:10 +01:00
..