Cache decoration-bake shader classification #31
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/linkoovosh--LinkoArts-build!31
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-31"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@avt0m4t48 on GitHub · 2026-12-03 04:00 UTC · original
avt0m4t48:perf-cache-pipeline-bake-key→main· +8 −2 · 2 files · 1 commits · draftChange
The texture prepass checks whether a bound shader belongs to a known decoration-bake program on each graphics draw when bake-source handling is active. Cache that classification once from the final host pipeline's bound stages. The draw still uses its current depth, render targets and texture size to classify an unfamiliar pipeline. The earlier classification before a host pipeline exists continues to use the same shader predicate.
Verification
An independent replay of the production classifier on the public and integrated source matched 28,000 classifications and 4,125 counted texture-kind lookups per source and CPU setting. The fixtures include recognized and ordinary stage combinations, depth, render-target count, and atlas dimensions. Each of these times is the median per evaluation from 15 alternating Linux x86-64 pairs, using prebuilt pipelines.
The standalone GPU tests and integrated Windows MSVC workspace tests type-checked with diagnostics, pure-Rust BLAKE3 and metadata-only allocator configuration. Both changed files passed the staged asset policy. The full existing tree reports three policy violations in files outside this patch. Pipeline-creation time, native GPU execution and gameplay frame time were unmeasured.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.