Skip to content

Avoid concurrent cold TTPF index parses during export - #8028

Open
david-x3d wants to merge 1 commit into
ItsNotRexed:mainfrom
david-x3d:perf/ttpf-parallel-cache-warmup
Open

david-x3d wants to merge 1 commit into
ItsNotRexed:mainfrom
david-x3d:perf/ttpf-parallel-cache-warmup

Conversation

@david-x3d

Copy link
Copy Markdown
Contributor

Summary

Depends on: #7997 for the performance benefit. This PR leaves the submodule pin to that PR.

The decoder cache can parse the same texture-pool index on several simultaneous cold misses. Run the first pending DDS export before starting the parallel loop so later workers can reuse the cached index. Completed DDS files, unsupported entries and manifest ordering keep their existing behavior.

ASSET-628 follow-up claim

Verification

  • Built the Release exporter on Linux with the current decoder pin and with the pin proposed in third_party/rpf9-explorer: pin 7793a954 so ttpf export stops re-parsing the pool index per texture (ASSET-628) #7997.
  • The TTPF resume suite passes with both pins. The new synthetic fixture compares byte-identical DDS files and manifests for one and eight workers, then verifies that a partial retry restores missing files and leaves an existing prefix untouched.
  • The rpf9dump exit-code suite has six passes and two identical pre-existing failures on the baseline and patched builds (texture and XMA write-failure cases).
  • CPU-only synthetic inputs.

@senyurah

Copy link
Copy Markdown

Independent Windows verification on 3fcdefd0c with the 7793a954 decoder from #7997. Both builds loaded the same decoder DLL under .NET 10. Across three fresh-process runs with --jobs 8, a synthetic 2,048-texture pool used a median 66.2 MB of managed allocations on main and 44.8 MB on this PR (about 32% less). The single-worker runs both used 44.7 MB, and the eight-worker timing ranges overlapped. Every run produced byte-identical DDS files and manifests.

All five TTPF resume tests passed. I also blocked the first pending DDS with a directory and seeded an old manifest. The run returned 1, withdrew the manifest, kept the other DDS it managed to write, and left no partial file. Removing the blocker and retrying restored the serial outputs byte-for-byte and preserved the successful DDS's mtime.

AI-assisted verification, CPU-only synthetic data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants