Skip to content

Generated bytecode by dxc has very higher compression ratio #2128

Closed as not planned

Description

@zuba

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

Activity

  1. BitMD commented on Apr 27, 2019

    @BitMD

    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.

  2. pgjb commented on Jul 27, 2020

    @pgjb

    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

  3. bluespeck commented on Sep 11, 2020

    @bluespeck

    Hi Michael Dougherty (@BitMD) Tex Riddell (@tex3d), any update on this? Thanks a lot.

  4. Division commented on Apr 8, 2022

    @Division

    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?

  5. added this to the Dormant milestone on Jun 11, 2024
  6. added
    revisit-sooner
    on Jun 11, 2024
  7. damyanp commented on Sep 4, 2026

    @damyanp
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dxilrevisit-sooner

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions