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

Linux: abnormally high GPU usage on Vulkan with r_fbo 1 #257

Open
Aciz opened this issue Dec 4, 2023 · 5 comments
Open

Linux: abnormally high GPU usage on Vulkan with r_fbo 1 #257

Aciz opened this issue Dec 4, 2023 · 5 comments

Comments

@Aciz
Copy link

Aciz commented Dec 4, 2023

When running with Vulkan renderer, specifically on Linux (Windows seems to work fine), effects that require r_fbo 1 seem to cause abnormally high GPU load. OpenGL renderer can achieve same FPS with much less GPU usage, and when running timedemos, the performance on Vulkan is significantly worse. I am running with GTX 1080 Ti, I don't unfortunately know anyone with AMD GPU who runs Linux to verify if they experience the same issue. @ensiform confirmed he experiences this as well, though he's on Nvidia GPU as well.

Notable settings in these comparisons:

r_fbo "1"
r_ext_multisample "4"
r_hdr "1"
r_vbo "1"

Vulkan:
image

OpenGL:
image

I went back to the earliest version available on releases (2021-03-28), and the issue persisted there too. When turning off FBO, Vulkan performs better compared to OpenGL, as one might expect.

@ec-
Copy link
Owner

ec- commented Dec 6, 2023

Try to disable r_ext_multisample or r_hdr to see what option actually causes significant performance drop

@Aciz
Copy link
Author

Aciz commented Dec 6, 2023

Try to disable r_ext_multisample or r_hdr to see what option actually causes significant performance drop

r_ext_multisample is definitely heavier. But that's not the point I'm making here, neither of these cvars cause as much load on OpenGL as they do on Vulkan, resulting in lower performance overall on Vulkan compared to OpenGL.

r_ext_multisample 0
r_hdr 0

~27% usage, 70W power
r_ext_multisample 4
r_hdr 0

~38% usage, 115W power
r_ext_multisample 0
r_hdr 1

~31% usage, 75W power
r_ext_multisample 4
r_hdr 1

~55% usage, 125W power

Timedemoing four.dm_68, both with r_ext_multisample 4 and r_hdr 1
Vulkan:
1260 frames, 2.56 seconds: 491.8 fps
OpenGL:
1260 frames, 0.93 seconds: 1357.8 fps

@Aciz
Copy link
Author

Aciz commented Dec 6, 2023

Timedemoing four.dm_68, both with r_ext_multisample 4 and r_hdr 1
Vulkan:
1260 frames, 2.56 seconds: 491.8 fps
OpenGL:
1260 frames, 0.93 seconds: 1357.8 fps

And for reference, same system but on Windows:
Vulkan:
1260 frames, 0.91 seconds: 1384.6 fps
OpenGL:
1260 frames, 1.12 seconds: 1127.0 fps

@ec-
Copy link
Owner

ec- commented Dec 6, 2023

Well, there is no platform-specific code in Vulkan/OpenGL renderers so it all depends from driver optimizations for a specific platform

@Aciz
Copy link
Author

Aciz commented Dec 6, 2023

Well, there is no platform-specific code in Vulkan/OpenGL renderers so it all depends from driver optimizations for a specific platform

Right, so this issue is likely in Nvidia linux vulkan drivers then. Would be nice to have someone with AMD or Intel to do a similar test, just to confirm.

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