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

Long startup time under DX12 #498

Closed
AlexanderHarrison opened this issue Mar 5, 2024 · 2 comments
Closed

Long startup time under DX12 #498

AlexanderHarrison opened this issue Mar 5, 2024 · 2 comments

Comments

@AlexanderHarrison
Copy link

On my (not ancient, not modern) machine, shader compilation under DX12 takes on the order of seconds and is by far the bottleneck of startup time for simple applications. This is with threaded compilation and Dxc.

Is there a way vello could pass through precompiled DX12 shaders or somehow optimize the shaders for compilation? Or is this something that would require work on wgpu?

I would like to use the Vulkan backend on windows but I've found it a little buggy and much more prone to crashing than using Vulkan on linux.

@AlexanderHarrison
Copy link
Author

Just saw the blog post. Sounds like you all are way ahead of me. :)

@DJMcNab
Copy link
Member

DJMcNab commented Mar 5, 2024

I'm not planning on implementing pipeline caching for DirectX12. I think gfx-rs/wgpu#5293 is the place to track this1, although it's realistically at least blocked on gfx-rs/wgpu#5319 (which is waiting on review bandwidth from the wgpu team)

Footnotes

  1. I made that issue to only track the Vulkan version, but it's been renamed away from that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants