Skip to content

Optimize replay export and prepared map verification - #2

Open
zero-r3x1 wants to merge 1 commit into
cravvnn:mainfrom
zero-r3x1:perf/export-pipeline
Open

zero-r3x1 wants to merge 1 commit into
cravvnn:mainfrom
zero-r3x1:perf/export-pipeline

Conversation

@zero-r3x1

Copy link
Copy Markdown

Summary

  • Speed up VPK path validation and reuse the verified compiled shader inventory across models in one export. Check archive changes and verify staged shader bytes.
  • Index animation graphs by table revision, share Blender dependency graph evaluations across character checks, and prepare invariant cloth data once per rig.
  • Batch sprite and trail animation curves. Pass the verified map inventory to Blender, with full verification when file identities change.

The converter adapter identity changes with this update. Derived model and clip caches rebuild on first use.

Validation

  • 1,518 non-GUI tests passed, 18 skipped, and 7 subtests passed. Focused Ruff checks and git diff --check passed.
  • Blender background checks matched sprite and trail curves at frames, subframes, and lifetime boundaries. Tests also detected changed shader and map bytes after restoring their modification times on Windows.
  • Blender 5.2.4 LTS successfully exported and reopened an animated character with a prepared Midtown map. All 843 external paths referenced by the saved scene resolved, and sampled character matrices matched exactly. Effects were disabled in this map export.
  • In an earlier controlled replay benchmark covering the VPK, animation, and character-check changes, median export time fell from 11.99 s to 9.77 s across three runs per version with populated caches. This benchmark excluded map, effects, and cloth.

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.

1 participant