Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated bytecode by dxc has very higher compression ratio #2128

Open
zuba opened this issue Apr 18, 2019 · 4 comments
Open

Generated bytecode by dxc has very higher compression ratio #2128

zuba opened this issue Apr 18, 2019 · 4 comments
Assignees
Labels
dxil revisit-sooner Label issues to revisit sooner rather than later...
Milestone

Comments

@zuba
Copy link

zuba commented Apr 18, 2019

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

@BitMD
Copy link

BitMD commented 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
Copy link

pgjb commented Jul 27, 2020

Hi @BitMD and @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
Copy link

Hi @BitMD @tex3d, any update on this? Thanks a lot.

@Division
Copy link

Division commented Apr 8, 2022

@BitMD @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?

@llvm-beanz llvm-beanz added this to the Dormant milestone Jun 11, 2024
@llvm-beanz llvm-beanz added revisit-sooner Label issues to revisit sooner rather than later... dxil labels Jun 11, 2024
@llvm-beanz llvm-beanz moved this to Triaged in HLSL Triage Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dxil revisit-sooner Label issues to revisit sooner rather than later...
Projects
Status: Triaged
Development

No branches or pull requests

7 participants