mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 15:58:36 +00:00
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.