ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.21k stars 174 forks source link

New Steam UI is slow and unresponsive and lags entire system #9960

Open Skrappjaw opened 1 year ago

Skrappjaw commented 1 year ago

Your system information

Please describe your issue in as much detail as possible:

Steam lags my entire system on load for up to 10 or 15 minutes when I start the client. Client gets past the loading screen and then lags when the store and library load. System is unusable. Even the sound lags,

Steps for reproducing this issue:

  1. Start Client.
  2. Go to the pub
  3. Come back and hope it is done lagging. steam-logs.tar.gz steam system info
kisak-valve commented 1 year ago

Hello @Skrappjaw, please copy your system information from Steam (Steam -> Help -> System Information) and put it in a gist, then include a link to the gist in this issue report.

Skrappjaw commented 1 year ago

Hello @Skrappjaw, please copy your system information from Steam (Steam -> Help -> System Information) and put it in a gist, then include a link to the gist in this issue report.

Done

drlkf commented 9 months ago

Same issue here, the interface will start lagging the entire system on loading some elements. I suspect an Xorg related issue since sound does not seem to be affected, it stays smooth the entire time, I have yet to try on a Wayland setup. https://gist.github.com/drlkf/20dd695b01533e216a3b24f61dbcf12c

rdyro commented 9 months ago

I'm experiencing a very similar issue, the steam client makes the whole system laggy and unusable for about 20-30 seconds on startup and when updating games. I'm using X11 with Gnome.

Steam Version:  1701289036
Steam Client Build Date:  Wed, Nov 29 11:59 AM UTC -08:00
Steam Web Build Date:  Wed, Nov 29 11:03 AM UTC -08:00
Steam API Version:  SteamClient021
Operating System Version:
Ubuntu 22.04.3 LTS (64 bit)
Kernel Name: Linux
Kernel Version: 6.2.0-37-generic
X Server Vendor: The X.Org Foundation
X Server Release: 12101004
X Window Manager: GNOME Shell
Steam Runtime Version: steam-runtime_0.20231024.64411
Video Card:
Driver: NVIDIA Corporation NVIDIA GeForce RTX 3090/PCIe/SSE2
Driver Version: 4.6.0 NVIDIA 545.23.06
OpenGL Version: 4.6
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 59 Hz
VendorID: 0x10de
DeviceID: 0x2204
Revision Not Detected
Number of Monitors: 1
Number of Logical Video Cards: 2
Primary Display Resolution: 2560 x 1440
Desktop Resolution: 2560 x 1440
Primary Display Size: 23.50" x 13.23" (26.97" diag), 59.7cm x 33.6cm (68.5cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 24576 MB
Supported MSAA Modes: 2x 4x 8x 16x
rdyro commented 9 months ago

After disabling the iGPU in BIOS, the stutter on startup goes away.

This also fixes another issue I had with steam on Linux where some games wouldn't launch (Last of US Part I). The error output seems to indicate some confusion between nvidia (for the eGPU) and radeon (for the iGPU) drivers.

My CPU is Ryzen 5 7600X.

Wemmy0 commented 8 months ago

My CPU doesn't even have an iGPU yet I'm still getting severe stuttering on the entire system when launching steam image

Trayshar commented 8 months ago

Same issue here, the interface will start lagging the entire system on loading some elements. I suspect an Xorg related issue since sound does not seem to be affected, it stays smooth the entire time, I have yet to try on a Wayland setup. https://gist.github.com/drlkf/20dd695b01533e216a3b24f61dbcf12c

I have the same issue, and I figured out it's related to wine and my GPU (Intel Arc A770). I get the exact same stuttering/freezing behaviour described above when I start any application through wine (or proton). I suspect steam is verifying the integrity of the installed games, launching some background proton stuff which results in the stutters on startup. Would be interresting to check if this happens on anyone elses machines. In my case it was sufficient to launch Notepad++ through wine to replicate it, but only when using my Intel GPU (swaping it with an old Nvidia card solved the issue, but thats not a solution to me, and I too suspect an Xorg related issue being the root cause). I have an AMD iGPU, which is disabled in BIOS.

Yorizuka commented 8 months ago

Also an Intel Arc A770 user, same issue. I'm using the XFCE desktop, Xorg & I'm on Artix Linux an Arch fork.

FraYoshi commented 8 months ago

Same issue on Arch, Xfce4 as DE (Xorg). It's like a year since it started. Ended up not opening Steam if possible... I have to close it entirely to stop the lag. Very frustrating.

drlkf commented 8 months ago

Same issue here, the interface will start lagging the entire system on loading some elements. I suspect an Xorg related issue since sound does not seem to be affected, it stays smooth the entire time, I have yet to try on a Wayland setup. https://gist.github.com/drlkf/20dd695b01533e216a3b24f61dbcf12c

i can confirm the issue does not appear on my setup after migrating to wayland (i3 -> sway)

Trayshar commented 8 months ago

i can confirm the issue does not appear on my setup after migrating to wayland (i3 -> sway)

So can I. Issue does not appear with Wayland on my KDE Plasma Manjaro system (kwin WM). Also, the games don't take forever to load anymore, I just thought that was wine's fault lol

FraYoshi commented 6 months ago

I just found out that the problem was solved once I re-installed xdg-desktop-portal-gtk which I removed at the time lags started to happen for Steam.. check out if it solves it for you too...

JulianGro commented 4 months ago

For me it turned out that Steam was using the Integrated Graphics instead of the system default dedicated graphics. Fully disabling the iGPU in the BIOS fixed the issue for me.

This also explains why I only ran into this after upgrading to a faster CPU; My old CPU didn't have integrated graphics.

Steam had stopped starting for me after a big operating system update and comment https://steamcommunity.com/app/221410/discussions/0/3051736373892813276/?ctp=3#c4358998952355858858 made me disable the iGPU to get Steam starting again.

NotMurPh commented 3 months ago

same issue here but i noticed that the problem doesn't exists in flatpak now im looking for their differences

bkdwt commented 2 months ago

Same problem on Ubuntu 24.04 with RTX A2000, 555.52.04 driver running on Xorg and an i7 8700. Steam deb installed. 180Hz Alienware monitor.

Kadah commented 2 months ago

Updated to 22.04 recently and this has gotten a lot worse. On 20.04, disabling hardware acceleration mostly fixed it. Now that makes no difference, input is laggy across the entire system while Steam is running. Its not as extremely bad if Steam is minimized to the system tray. System (CPU and GPU) load is virtually at idle, except for a randomly high kernel load sometimes from seemingly wine processes, though there is no change in the issue while that is happening.

While Steam is running, all HID inputs are laggy and constantly stutter, all windows and desktop UIs are very slow to respond, any video playback is choppy... pretty much anything displaying to the desktop environment is borked.

Steam hasn't been this bad since the initial UI update and before the previous working mitigation on 20.04. Currently Steam is unusable.I'm going to reinstall the NVIDIA drivers to see if that makes any difference, then switch to the flatpack as others have suggested worked for them.

https://gist.github.com/Kadah/1beaf07fd06780971f38adb48d8e2de9

Edit: 2024-06-29 Switching to flatpak resolved this almost completely. There is still the occasional hitch, but the system is usable while Steam is running and possible to run games at higher than an effective 5fps on a 3090ti. There is something quite wrong with the deb install.

Sys info from flatpak install: https://gist.github.com/Kadah/03000e334ab1e0a56e6b869607e2c0d1

Since that is pretty much the same to the deb install, here's the debug info. deb install: https://gist.github.com/Kadah/278421b015a2fd7d9762a3c0d70901da flatpak: https://gist.github.com/Kadah/57a988de3388cd061a495114d5eda98b

djaiss commented 1 day ago

I have the same issue and @Kadah indeed, Flatpak works better than deb, but it still freezes randomly the entire OS.