Repository navigation
Conversation
…index once (ASSET-628) TtpfReader.CreateDds re-read and re-parsed the whole texture pool index for every texture, so rpf9dump ttpf did the index work once per texture instead of once per pool. Upstream 3196f23, the direct child of the old pin e293917, caches the parsed index keyed by path, length and write time. Synthetic 16,000-texture pool: 44.0 s -> 8.4 s, byte-identical DDS output. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
One difference from the upstream merge of PR #14: I confirmed the cancellation difference on Windows with a synthetic pool. After warming the cache, The two reported exit-code test failures are covered by #6999. The tests blocked the old fixed temporary filename; with that test fix they pass with both decoder versions I compared in #4687. No game data. AI-assisted (Codex). |
3196f23 is the feature-side parent of upstream's merge of the index cache. The merge commit adds a cancellation check before the cache lookup and re-checks the pool's length and write time after parsing, so pin that. It also brings in the rest of that upstream merge: one TtpfReader tile pattern row, 48 kHz Opus durations for 32 kHz AWC streams, and the PSIN metadata scanner.
|
Thanks, you're right. I moved the pin to the merge commit |
Summary
ASSET-628 (claim, found by
MaxtorCoder).TtpfReader.CreateDdsstarted withReadIndex, sorpf9dump ttpfre-read and re-parsed a texture pool's whole index once per texture. Upstream fixed this in breadbbbb/rpf9-explorer@3196f23 (EdouardSence) and merged it as 7793a954:CreateDdsreuses the parsed index, cached by path, length and write time. The merge adds a cancellation check before the cache lookup and re-checks the pool after parsing.This PR moves the
third_party/rpf9-explorergitlinke293917→7793a954(the merge, not its feature-side parent, per review).Also included from that upstream merge
TtpfReader: one row of the 64 KiB tilePatternstable changes (-3,3→3,-3).AwcRecovery.DecodedSampleRate,OpusPreview.cpp).Rpf9PsinRecovery) for the desktop app's full scan, with the CHKS checksum checked.Tested
Windows 11, .NET SDK 10.0.301, Python 3.13.0. Synthetic pools only (single-mip 16×16 BC1 textures written by
tests/test_ttpf_mips.py'spack_etpf_record/write_rds5_pool), no game data.e293917(old pin)7793a9547793a954also gave byte-identical output to3196f23on the 16,000-texture pool (7.2 s vs 7.3 s). These pools don't exercise the changed tile-pattern row.With
RPF9DUMP_DLLset to the7793a954build:test_ttpf_export_resumeOK,test_ttpf_mipsOK,test_ttpf_assetsOK (2 skipped). The twotest_rpf9dump_exit_codesfailures seen on Windows also fail at the old pin and are covered by #6999.Not timed on a retail pool. Upstream's commit reports 81 s → 5 s on an 11,241-texture pool.
AI-assisted: yes