upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorEdouardSence <103503538+EdouardSence@users.noreply.github.com>2026-11-22 12:30:10 +0100
committerEdouardSence <103503538+EdouardSence@users.noreply.github.com>2026-11-22 12:30:10 +0100
commit62eedd84b16c8719921099bb8f94d0c3d59dd552 (patch)
tree194981a15515667c06e3046c0eb65decdc420c1c /runtime/src/thread_stacks.cpp
parentbb2e18421dac527374eb837c88b5063c5d96f81f (diff)
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.
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions