You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generated bytecode by dxc has very higher compression ratio #2128
Generated bytecode of dxc has a very higher compression ratio comparing to fxc, for example If I will zip same shaders dxc version is 3 times bigger ( fxc has around 30% compression ratio when dxc has around 80-85%). I’m compiling without debug info and with /O3 argument, do I need to specify anything else? thanks
We just added better support for /qstrip_reflect but even with that the DXIL size is too high and it does not compress well. We are working on this now.
I've also recently come across this dxc compression ratio issue and wondered if there was any update? Also if anyone has found improvements by eg. using different compression algorithm? Thanks
Michael Dougherty (@BitMD)Tex Riddell (@tex3d)
Hi, I'm adding dx12 renderer to pc version of the game and noticed that vulkan shader cache is 3x smaller than dx12 (cache is compressed). At the same time size of a single uncompressed shader in dx12 is smaller. Which makes me think that shader bytecode is already compressed.
On xbox I used __XBOX_DISABLE_SHADER_OBJECT_COMPRESSION macro for dxc to fix the same issue.
Is there a similar parameter for PC dxc?
Activity
BitMD commentedon Apr 27, 2019
We just added better support for /qstrip_reflect but even with that the DXIL size is too high and it does not compress well. We are working on this now.
pgjb commentedon Jul 27, 2020
Hi Michael Dougherty (@BitMD) and Tex Riddell (@tex3d)
I've also recently come across this dxc compression ratio issue and wondered if there was any update? Also if anyone has found improvements by eg. using different compression algorithm? Thanks
bluespeck commentedon Sep 11, 2020
Hi Michael Dougherty (@BitMD) Tex Riddell (@tex3d), any update on this? Thanks a lot.
Division commentedon Apr 8, 2022
Michael Dougherty (@BitMD) Tex Riddell (@tex3d)
Hi, I'm adding dx12 renderer to pc version of the game and noticed that vulkan shader cache is 3x smaller than dx12 (cache is compressed). At the same time size of a single uncompressed shader in dx12 is smaller. Which makes me think that shader bytecode is already compressed.
On xbox I used __XBOX_DISABLE_SHADER_OBJECT_COMPRESSION macro for dxc to fix the same issue.
Is there a similar parameter for PC dxc?
triage: batch 006 (microsoft#2128, microsoft#2331, microsoft#2528, mi…
damyanp commentedon Sep 4, 2026
https://devblogs.microsoft.com/directx/directx-adopting-spir-v/ - adopting SPIR-V in SM7 (and clang) will make help somewhat with this problem, and we'll continue to keep an eye on it, but as far as DXC and DXIL is concerned we have no plans to work on this.