Repository navigation
worker: speed up cold DXC compilation of large pixel shaders - #141
Merged
Merged
Conversation
Contributor
|
lowkey a lifesaver bro my shit was so slow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
For cold
ps_6_6requests with at least 256 KiB of generated HLSL, try optimized DXC with-disable-lifetime-markersfirst. The worker validates the candidate with DXV and checks the container and shader stage before caching it. A refused, timed-out, or invalid candidate falls back to the existing policy. Warm cache entries remain valid.This change targets large pixel shaders. #134 targets process startup for
cs_6_0and overlaps in the shared cold DXIL validation path. The combination passed local tests. I can rebase this branch if #134 lands first.Verification
Five alternating cold pairs per synthetic pixel shader, substituting only the translator's output and using the runtime worker with real DXC and DXV.
All 30 cold compiles passed DXIL validation. Warm runs reused validated output without compiler calls. In separate timed compiler passes, Jump Threading accounted for 10–25% of baseline pass time and was absent when lifetime markers were disabled.
A separate synthetic pixel readback matched a CPU reference at all 496 covered pixels under both DXC settings.
All CONTRIBUTING.md checks passed. Tested with DXC 1.9.2609.5 on CachyOS and Ryzen 9 9950X3D. The pixel readback used an RTX 4080 SUPER with NVIDIA 620.73.4 and Proton Experimental.
Prepared by a mostly unsupervised AI agent.