gfx-rs / wgpu

A cross-platform, safe, pure-Rust graphics API.
https://wgpu.rs
Apache License 2.0
12.68k stars 929 forks source link

Latency issues on (Arch) Linux but not on Windows with egui #6548

Open Raj2032 opened 1 day ago

Raj2032 commented 1 day ago

Hi, when I am using the blue_engine with egui I have noticed there is latency, whether if i am moving the windows around or when I move my mouse to hover on the buttons there is this slight second before it reacts etc.

Here is the video for this demonstration:

https://github.com/user-attachments/assets/b225ec63-0f0e-4ba1-b054-8ea09c9a1357

I have tried using --release mode same issue.

This is an issue on Linux however it runs fine on Windows without latency (even in debug mode). I ran lspci -nnk | grep -i -EA3 "3d|display|vga" and this is the output (on linux):

00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06)
    Subsystem: Gigabyte Technology Co., Ltd Device [1458:d000]
    Kernel driver in use: i915
    Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii XT / Grenada XT [Radeon R9 290X/390X] [1002:67b0]
    Subsystem: ASUSTeK Computer Inc. R9 290X DirectCU II [1043:046a]
    Kernel driver in use: amdgpu
    Kernel modules: radeon, amdgpu

I have tried both amdgpu and radeon drivers, both had the same issues. I am using R9 290X DirectCU II graphics card. I tried using different kernels such as xanmod or even tried different the same thing on Linux Mint, same issue.

Its odd cause everythign else is worse on Windows, the performance of Youtube can be quite bad using the exact same browsers, I have done performance benchmark tests and linux has done much better on gpu and cpu side of things, when opening up new tabs on windows that lags but on linux its smooth etc so makes no sense why I am having issues with egui on Linux.

Raj2032 commented 1 day ago

Hi mods can you move this back to wgpu as its not nothing to do with webgpu.

Wumpf commented 1 day ago

WebGPU for Firefox is just Mozilla's public planning board for triaging the priority of issues towards getting WebGPU impl for Firefox ready (which is built upon wgpu). I'll let them decide whether it's relevant or not towards that goal but it might well be.

Issue reminds me a lot of this report https://github.com/emilk/egui/issues/5037#issuecomment-2324667219