diff options
| author | Davide <davidec98@live.it> | 2026-11-22 18:25:48 +0100 |
|---|---|---|
| committer | Davide <davidec98@live.it> | 2026-11-22 18:49:28 +0100 |
| commit | e6ab90d6d4a7a56fdf8dc9215afb52fc868316e9 (patch) | |
| tree | 8776035363a9ee72e4ffd6583387a32dd2af618a /runtime/src/host_cpu.cpp | |
| parent | 3557964e2fb599eba5a99fe0dfe34a7490bd2b2c (diff) | |
rpf9dump: export a window of a file, and per-geometry counts in the models manifest
Models and textures no longer open the archive document. The entry list comes from this run's
scan or from the index cache, and every resource is read from its own compression blocks
(tools/rpf9dump/Segments.cs), which mirrors the checks ArchiveReader.ReadResourceData makes. That
makes a raw slice of an archive exportable: a window cut out of levels.rpf has no 9FPR header, so
there was nothing to open before, and the mode simply failed on it.
--start/--length scan one window instead of the whole file. A sub-range is never written to the
index cache, which is keyed by the file rather than by the window; the manifest records
Scan.Start and Scan.Length for it.
The manifest gains MeshTris, MeshModels and MeshGeoms: the per-geometry triangles and the
(model, geometry) pair the decoder puts in each mesh name, in the order of the OBJ's `o` groups.
A dehydrated BLAS leaf stores that pair as its geometry index (docs/bvh.md 4a), so a matching tool
can filter candidates on the manifest instead of reading every OBJ.
Measured: one 1 GiB slice of levels.rpf scans, recovers, decodes and exports 1,228 models in about
2 s. The project builds clean with no warnings; tests/Rpf9DumpDiagnostics covers the segment reader
(compressed and raw blocks, a block past the end, a short block, an entry without blocks) and the
mesh key parsing, and still passes.
Diffstat (limited to 'runtime/src/host_cpu.cpp')
0 files changed, 0 insertions, 0 deletions