Shaders: two-pass passthrough DXIL and the cache dir canonicalization are redone on every PSO build (verification help wanted) #2885
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-26T21:14:04Z.
Could someone verify on Windows whether
finish_two_pass_compiled/rect_list_gsrebuilding or re-reading DXIL from disk without a RAM cache, anddxc::compile_cached_in_observedcallingstd::fs::canonicalizeon every lookup, add measurable overhead during world load?On
mainat8b957bec:finish_two_pass_compiledgeneratesmesh_passthrough_for(&record, ps_inputs.as_deref())and callsdxc::compile_cacheddirectly on every two-pass MS or GS pipeline build, bypassingShaderCacheandtranslated/v2.rect_list_gsdoes the same for rect-list graphics PSOs. Even when the passthrough is already cached on disk, every PSO build regenerates the HLSL string, hashes it, reads the.dxilfile from disk, and re-validates the DXIL container.dxc::compile_cached_in_observed,normalized_cache_dir(dir)callsstd::fs::canonicalize(dir)on every invocation (including cache hits andcached_onlyprobes) before checkingcached_file(&file).finish_two_pass_compiledrect_list_gscompile_cached_in_observed/normalized_cache_dirPlease verify on a Windows title run with warm caches how many times
finish_two_pass_compiled,rect_list_gs, andnormalized_cache_direxecute during world load and how much total CPU time they consume (e.g., whether an in-memory passthrough DXIL cache or cachingnormalized_cache_dirfordxc::cache_dir()makes a measurable difference).Duplicate check: screened open issues and PRs (including drafts); no matching report found for
mesh_passthrough_forRAM caching ornormalized_cache_dirper-call canonicalization.AI use: Gemini 4 Hydrogen (via Antigravity CLI) inspected the source via Graphify and filed this verification request.