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

100% CPU used on some linux setups #2

Open
pfgithub opened this issue Sep 24, 2024 · 2 comments
Open

100% CPU used on some linux setups #2

pfgithub opened this issue Sep 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@pfgithub
Copy link

Any wgpu sample uses 100% of one cpu core on linux, even though the time to render and display the frame is less than that

zig build triangle_wgpu-run # uses 100% cpu
zig build minimal_glfw_gl-run # barely uses any cpu

In tracy sampling, it seems like it might be spending all its time on gctx.device.tick inside zgpu.GraphicsContext.uniformsNextStagingBuffer.

screenshot of tracy

This could possibly be an issue specific to the i3 window manager, I haven't tested in any other wm.

@hazeycode
Copy link
Member

No repro running popOS with X11 and radv Mesa 24.0.3-1 driver.

@hazeycode hazeycode added the bug Something isn't working label Oct 13, 2024
@citruslee
Copy link

can concur, 5% CPU across all the cores on PopOS X11 with NVIDIA: 560.35.03 560.35.3.0 driver. It does have a 100% CPU spike for a split second, but it is at the very beginning. This is a 13th gen i7-13700HX laptop CPU, 16GB RAM with 4060 8gb VRAM laptop GPU. (Lenovo Legion, somethingsomething, forgot the exact model name)

@hazeycode hazeycode transferred this issue from zig-gamedev/zig-gamedev Nov 5, 2024
@hazeycode hazeycode changed the title Wgpu uses 100% CPU on linux 100% CPU used on some linux setups Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants