emilk / egui

egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
https://www.egui.rs/
Apache License 2.0
22.53k stars 1.61k forks source link

Latency issues on Linux but not on Windows #5371

Closed Raj2032 closed 1 week ago

Raj2032 commented 1 week ago

When using the web version: https://www.egui.rs/ it runs perfectly smooth. I am able to move the windows quickly etc.

However when I am using either your hello_world example (after git cloning it) or using the blue_engine 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/3c77e418-5b22-4ffa-9a6e-4cb139846072

I have tried using --release mode same issue.

This is an issue on Linux however it runs fine on Windows without latency. 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.

Its odd cause everythign else is worse on Windows, the performance of Youtube can be quite bad using hte 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 week ago

Turns out switching to wayland resolves the issue, closing ticket!