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

[Vk] GenerateMipMaps slow #95

Open
krauthaufen opened this issue Aug 23, 2022 · 2 comments
Open

[Vk] GenerateMipMaps slow #95

krauthaufen opened this issue Aug 23, 2022 · 2 comments

Comments

@krauthaufen
Copy link
Member

I have a Demo rendering things to a texture, then generating mipMaps via IRuntime.GenerateMipMaps and using the mipmapped texture in a fullscreen pass.

In OpenGl the postprocessing time is about 3ms but in vulkan it's somwhere around 60ms

@hyazinthh
Copy link
Member

Are you sure this is due to GenerateMipMaps? I ran some simple Vulkan tests only benchmarking that call:

  • 1920x1080: 2.73ms
  • 3840x2160: 7.3ms

Not super fast, but not close to your numbers. In Vulkan all those public API calls are CPU synced, maybe that's your bottleneck?

@krauthaufen
Copy link
Member Author

I'll check that again, maybe my sampling shader was slow for some reason...

Badically i did two things:

  1. GenerateMipMap
  2. Render a FullScreenQuad with a rather expensive FragmentShader

But I didn't expect my shader to be so much slower

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