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

lag spikes after 25-40 minutes of playing on linux #11446

Open
darix opened this issue Nov 11, 2024 · 95 comments
Open

lag spikes after 25-40 minutes of playing on linux #11446

darix opened this issue Nov 11, 2024 · 95 comments
Labels

Comments

@darix
Copy link

darix commented Nov 11, 2024

A lot of details are already collected in:

doitsujin/dxvk#4436

it could be related for a LD_PRELOAD added for the "record your game" feature?

the workaround while we wait for the fix

please see this comment for all the details doitsujin/dxvk#4436 (comment)

@TerohsLab
Copy link

Can confirm the findings of that thread on KDE Tumbleweed Wayland.

It started happening around the time "record your game" rolled out for me.

@LethalManBoob

This comment was marked as off-topic.

@HeinsKetchup
Copy link

Pulling this from a reddit topic I saw where the user also had the issue, may be relevant:

"When I run 'top' in the terminal I see the game running 'engMain', when I have it focused, the %CPU will show somewhere between 300 - 400 when not moving my mouse - the game runs fine. When I touch my mouse the %CPU value plummets to about half of whatever was initially shown and the game stutters. This does not happen when the game is initially started"

@SheMelody
Copy link

SheMelody commented Nov 11, 2024

I'm the one who started this recently in the other repo issues and I can confirm that it is still happening. You can get rid of this by using LD_PRELOAD="", but you can still use LD_PRELOAD to preload your own libraries.

Can confirm the findings of that thread on KDE Tumbleweed Wayland.

It started happening around the time "record your game" rolled out for me.

Exactly.

@pkly
Copy link

pkly commented Nov 11, 2024

Also happens to me on gnome 47, Wayland, fedora 41, Nvidia 560 and 565, started happening when the game recording update came out.
Additionally I'm not sure if it's part of the same problem but with the overlay enabled doing nothing (no game recording enabled, no windows, no chat, nothing) the overlay vram usage balloons to almost 2gb reported by nvidia-smi.

@SheMelody
Copy link

SheMelody commented Nov 11, 2024

@kisak-valve I just want to add that this also happens when the overlay is turned off through the Steam UI.

(with also both game recording and steam input disabled as well, from the UI of course)

doitsujin/dxvk#4436 (comment)

@rafaberaldo
Copy link

Having the same problem, started after the Steam Game Recording update as well, enabling the overlay fixed the problem.

@MichaelDeets
Copy link

I've had this issue for years ValveSoftware/csgo-osx-linux#2901 but I only play 1-2 games, so after CS:GO moved to CS2, the issue went away.

But for years, CS:GO using DXVK native required LD_PRELOAD=""

@d3nd3
Copy link

d3nd3 commented Nov 11, 2024

gameoverlayrenderer.so most likely culprit

@SheMelody
Copy link

gameoverlayrenderer.so most likely culprit

It definitely is.

@TerohsLab
Copy link

But many of us have the steam overlay and recording feature turned off in the options. So why would it even load that?

@SheMelody
Copy link

SheMelody commented Nov 11, 2024

But many of us have the steam overlay and recording feature turned off in the options. So why would it even load that?

That's probably part of the bug. /environ shows that the library still loads even though those things are turned off. Hence why LD_PRELOAD="" fixes the issue (prevents said library from loading).

@Tridale
Copy link

Tridale commented Nov 13, 2024

While it does seem like people have helped corner the source of the issue, I figured a little more information couldn't hurt.

Note that using LD_PRELOAD as SheMelody suggests appears to have fixed my issues, will need to test further to confirm but initial tests has been very promising. A huge thank you to them as when I look further at this issue it's clear they put in a lot of legwork on trying to help pinpoint this issue.


After the steam update about a week ago, the one that apparently added in additional recording features as well as updated to runtime environments scout, soldier and sniper, both of my linux systems would have issues playing games through proton. I'd notice the odd tiny bit of jitter while playing, but after 20-50 minutes (depending on game and game settings) I'd start getting horrible framerate drops whenever I...

  • moved the mouse
  • gave input on the keyboard

The stuttering would last for about a second after the input stopped, and if the input was just a single key press that was held for a few seconds it would stop. As I had a controller connected I switched to that and the game I was playing (subnautica) ran perfectly smooth, went back to mouse and keyboard? Stuttering. This stuttering also appeared to be framerate only, as on the main menu of one of the games (Again, Subnautica) the mouse cursor would move smoothly, but the background animations would stutter like mad while I was moving the cursor once I had hit this 'time to stutter' threshold.

So whatever issue is involved with this overlay issue is also tied with mouse and keyboard input. At least on my end after some testing. What I did not do is continue using the controller for another 50 minutes or so to see if there's some sort of 'input buffer' that fills up with a specific kind of input that would cause the controller input to start lagging.

This was also exclusive to steam, as I have games that run natively on linux or I use regular WINE for that do not suffer this stuttering issue.

I'll also give additional system information on both of my systems below, the only thing that unifies the two systems is that they are linux, are AMD CPU and graphics and the three games I tested had some sort of internet traffic, though both machines run on completely different internet connections (wired/wi-fi) and ISP's.

Desktop (Tested with Subnautica with Archipelago multi-world randomizer):

  • Custom build
  • Arch Linux : KDE Plasma 6.2.3 , Wayland
  • CPU: AMD Ryzen 9 7900X 12-Core
  • Graphics: AMD Radeon RX 7900 XT

Laptop (Tested with Helldivers 2 and Mechwarrior Online):

  • Framework 16 Laptop
  • Linux Mint 22 Cinnamon (Cinnamon 6.2.9) , x11
  • CPU: AMD Ryzen 9 7940HS
  • GPU: AMD Radeon RX 7700S

Steam overlay has been entirely disabled through the Steam UI on both PC's as well.

@netborg-afps
Copy link

Yes, LD_PRELOAD="" fixes it for me as well, but do I need to put it in the launch options for every game or can I set it globally?

@SheMelody
Copy link

Yes, LD_PRELOAD="" fixes it for me as well, but do I need to put it in the launch options for every game or can I set it globally?

Do not set it globally, no.

@ndrspcfd
Copy link

I've been having the same symptoms using conty_lite.sh w/ Slackware current from the 8th Nov or so: Subnautica becomes unplayable slideshow after 1/2 hour to an hour (playing with kb/mouse).

After the LD_PRELOAD workaround this seems to have gone away. Thanks for that!

I still see "ERROR: ld.so: object '/home/pete/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored." with the workaround in place and overlay disabled for the game and then disabled globally.

Wonder if it's some byproduct of setenv changes ?

@atimeofday
Copy link

Disabling steam game recording on a per-game basis through its settings UI seems to solve this issue for me without losing other things. (Game tested: Warframe)

@phpony
Copy link

phpony commented Nov 16, 2024

If you're using gamemode you can just use this hack to temporarily hide gameoverlayrenderer.so from the game without messing with other libs:

~/.config/gamemode.ini

[custom]
start=mv ~/.steam/debian-installation/ubuntu12_64/gameoverlayrenderer.so ~/.steam/debian-installation/ubuntu12_64/gameoverlayrenderer.so.bak; mv ~/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so ~/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so.bak
end=mv ~/.steam/debian-installation/ubuntu12_64/gameoverlayrenderer.so.bak ~/.steam/debian-installation/ubuntu12_64/gameoverlayrenderer.so; mv ~/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so.bak ~/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so

UPD. No, it isn't the best approach because gamemode doesn't wait for script to exit so it's possible it'll launch the game before the lib is hidden.

@ShikharArvind
Copy link

ShikharArvind commented Nov 17, 2024

Had similar issue with The Witcher 3. After 30-50 min of smooth playing, the game stutters significantly with constant FPS drops.
Launching the game with LD_PRELOAD="" seems to have fixed the issue.

@darix
Copy link
Author

darix commented Nov 17, 2024

TBH: if all you want to add to the bug is "oh yeah i had that issue too and the solution helped me" please just click the thumbsup in the initial post in this thread. those comments do not add any more useful information to the issue.

Thank you in advance.

@MissPotato
Copy link

I want to add that doing LD_PRELOAD="" breaks the steam ingame overlay (obviously) but also doesn't completely solve the issue. Anytime steam pushes a notification, such as a friend going online, the system hangs will still happen. As well as having the full steam interface as the primary application will cause major slowdowns with a game running. Minimizing the steam window (or having it in the background) is fine.

@Gambloide
Copy link

Gambloide commented Jan 22, 2025

Feel like it would be easier to just list what works. Looking at the linked topics here and what i saw on reddit, it affects basically every game and every distro.

Potentially every distro aside Steam OS, but every game, i doubt that's the case, i tested 2 games that seems to works perfectly fine without any alteration to LD_PRELOAD. Also if that problem was so widespread the whole Steam Client Linux forum would've been flooded by now.

It took me months to figure out the cause of the issue and even consider it was a Steam issue. I first thought it was a problem with a Dark Souls 3 mod. Then it happened in Talos Principle, but since the game ran awfully anyway, I didn't connect the dots. Then it happend in Ratshaker and I realized it might be a systematic issue, but googling around didn't yield any useful results. I think it happened in Monster Hunter Rise too. Only after it happened in Armored Core VI and I realized it only happened when I moved my mouse, did I eventually stumble across this GitHub issue after multiple search sessions. And I only did because I played Armored Core with KBM instead of controller, since using a controller and not touching the mouse did prevent the lag in my case in that instance.

That is to say that people might just be lucky and while their game and system might be succeptible to this issue, they might not be affected by it because of a combination of factors.

I am on Nobara Linux 41, and the listed games here are affected on my end. The only games I played since this started happening I do not remember having issues were 2D games like Balatro or Ballionaire.

@Slashic
Copy link

Slashic commented Jan 22, 2025

The more data we have, the more we and steam devs will be able to reproduce and pinpoint the true root cause.
Be it: Tests cases with driver, game and distro for instance.

@Dinjoralo
Copy link

I'm going to do tests in more games when I have an opportunity.

My distro is CachyOS and my GPU is an RTX 4070 Super.

@alexzk1
Copy link

alexzk1 commented Jan 22, 2025

ArchLinux, RTX-3050,
Skyrim SE (frozen at ver 640) heavy modded - lags / crashes.
Elite Dangerous - low fps (but this is legal state for it). With fix works perfect except carrier docking.
TESO - without fix had to reload game each 20-30 minutes - mouse was stuttering, for example, it was not possible to move mouse to next pin in "unlock" mini-game. Image itself was causing headache.

Steam itself - everything is OFF (including GPU animations) which can be off. Also I tried to kill steam's webhelper, it didn't help.

"Fix" just fixes all games at once.

I have only mouse & external keyboard connected to the laptop. No more devices.

@GrabbenD
Copy link

GrabbenD commented Jan 22, 2025

$ steam-native is my dailydriver and haven't encountered this issue yet.

Tested using 2 computers with Steam Overlay enabled on Arch Linux

@Dinjoralo
Copy link

$ steam-native is my dailydriver and haven't encountered this issue yet.

Tested using 2 computers with Steam Overlay enabled on Arch Linux

Thank you for the heads up about steam-native-runtime. I'll give that a try after I test other games to see if it'll solve the issue for me. I still want to provide info to make sure this gets addressed for other users.

@GrabbenD
Copy link

GrabbenD commented Jan 22, 2025

Make sure you've shutdown steam completely ($ steam -shutdown) before trying $ steam-native as otherwise it'll bring up your existing Steam instance without having any effect.

I haven't ran into this issue in neither Sway nor KDE6 (both uses Wayland).

@d3nd3

This comment has been minimized.

@Slashic
Copy link

Slashic commented Jan 22, 2025

Can you confirm?

Makes absolutely no difference aside the overlay displayed or not in-game, it is still loaded for the game executable be it 32bits or 64bits version.

Besides, i could reproduce the issue with the overlay disabled, the 32bits library deactivated and only the 64bits one loaded.

lsof | grep -i gameoverlay | grep -e steam -e Ys

With option enabled:

steam     47939                          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 47950 SteamUpda          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 47951 pool-spaw          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 47952 gmain              slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 47953 dconf\x20          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 47954 IOCP\x20T          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 47955 gdbus              slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 47991 HTMLContr          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48019 steam:cs0          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48020 steam:dis          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48021 steam:sh0          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48022 steam:sh_          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48023 steam:tra          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48024 steam:tra          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48025 steam:tra          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48028 steam:tra          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48029 steam:gdr          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48030 steam:gl0          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48043 IPC:CServ          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48044 IOCP\x20T          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48045 IPC:CStea          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48047 CFileWrit          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48049 SteamEngi          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48050 CJobMgr::          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48051 CHTTPCach          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48052 Controlle          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48053 CSteamCon          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48057 threaded-          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48059 CHTTPClie          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48060 CSystemMa          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48061 CJobMgr::          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48074 CFileWrit          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48078 threaded-          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48084 SteamUIWa          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48109 IPC:CStea          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48153 Steam\x20          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48345 CJobMgr::          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48347 CJobMgr::          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48368 steam              slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48407 SocketThr          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48408 CJobMgr::          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48410 CJobMgr::          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48442 CJobMgr::          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48445 CHTTPClie          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48446 CHTTPClie          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48884 CNet\x20E          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 49009 CHTTPClie          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 49841 CHTTPClie          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 50412 CNet\x20E          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 50413 steam              slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 52119 CJobMgr::          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam.exe 52778                          slash  mem       REG               0,39             3291717 /home/slash/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so (stat: Operation not permitted)
steam.exe 52778 52844 steam.exe          slash  mem       REG               0,39             3291717 /home/slash/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so (stat: Operation not permitted)
steam.exe 52778 52849 steam.exe          slash  mem       REG               0,39             3291717 /home/slash/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848                          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52850 wine_xinp          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52851 wine_sech          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52854 Ysc_dx1:d          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52855 Ysc_dx11.          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52856 Ysc_dx11.          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52857 dxvk-subm          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52858 dxvk-queu          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52859 dxvk-cs            slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52861 dxvk-fram          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52864 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52865 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52866 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52868 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52869 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52870 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52871 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52872 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52873 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52874 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52875 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52876 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52877 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52878 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52879 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52880 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52882 WSI\x20sw          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52883 WSI\x20sw          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52889 Ysc_dx11.          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52892 audio_cli          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52893 audio_cli          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52894 wine_dsou          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 52848 52895 Ysc_dx11.          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)

With option disabled:

steam     47939                          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 47950 SteamUpda          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 47951 pool-spaw          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 47952 gmain              slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 47953 dconf\x20          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 47954 IOCP\x20T          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 47955 gdbus              slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 47991 HTMLContr          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48019 steam:cs0          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48020 steam:dis          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48021 steam:sh0          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48022 steam:sh_          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48023 steam:tra          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48024 steam:tra          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48025 steam:tra          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48028 steam:tra          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48029 steam:gdr          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48030 steam:gl0          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48043 IPC:CServ          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48044 IOCP\x20T          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48045 IPC:CStea          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48047 CFileWrit          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48049 SteamEngi          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48050 CJobMgr::          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48051 CHTTPCach          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48052 Controlle          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48053 CSteamCon          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48057 threaded-          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48059 CHTTPClie          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48060 CSystemMa          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48061 CJobMgr::          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48074 CFileWrit          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48078 threaded-          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48084 SteamUIWa          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48109 IPC:CStea          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48153 Steam\x20          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48345 CJobMgr::          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48347 CJobMgr::          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48368 steam              slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48407 SocketThr          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48408 CJobMgr::          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48410 CJobMgr::          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48442 CJobMgr::          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48445 CHTTPClie          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48446 CHTTPClie          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 48884 CNet\x20E          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 49009 CHTTPClie          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 49841 CHTTPClie          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 50412 CNet\x20E          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 50413 steam              slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam     47939 52119 CJobMgr::          slash  112r      REG               0,50   349308    3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
steam.exe 53820                          slash  mem       REG               0,39             3291717 /home/slash/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so (stat: Operation not permitted)
steam.exe 53820 53885 steam.exe          slash  mem       REG               0,39             3291717 /home/slash/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so (stat: Operation not permitted)
steam.exe 53820 53890 steam.exe          slash  mem       REG               0,39             3291717 /home/slash/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889                          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53891 wine_xinp          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53892 wine_sech          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53895 Ysc_dx1:d          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53896 Ysc_dx11.          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53897 Ysc_dx11.          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53898 dxvk-subm          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53899 dxvk-queu          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53900 dxvk-cs            slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53902 dxvk-fram          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53906 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53907 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53908 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53909 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53910 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53911 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53912 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53913 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53914 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53915 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53916 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53917 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53918 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53919 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53920 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53921 dxvk-shad          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53923 WSI\x20sw          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53924 WSI\x20sw          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53926 Ysc_dx11.          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53929 audio_cli          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53930 audio_cli          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53931 wine_dsou          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Ysc_dx11. 53889 53932 Ysc_dx11.          slash  mem       REG               0,39             3291701 /home/slash/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so (stat: Operation not permitted)
Steam Beta Branch:  Stable Client
Steam Version:  1737514353
Steam Client Build Date:  Wed, Jan 22 3:35 AM UTC -08:00
Steam Web Build Date:  Wed, Jan 22 2:41 AM UTC -08:00
Steam API Version:  SteamClient021

@d3nd3
Copy link

d3nd3 commented Jan 22, 2025

My information was simply incorrect, ignore it.
Its better like you say to use the command lsof than checking environ because there are many processes to check, it gets messy quickly.

lsof /home/YOUR_USER/.steam/debian-installation/ubuntu12_64/gameoverlayrenderer.so
and
lsof /home/YOUR_USER/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so
confirmed that the library is still loaded even when overlay option is disabled, I need to test further as to why it seems the bug has gone, need more testing time to confirm if it even has.

Update.
Okay, I still experience the bug. Confirmed.

@Dinjoralo
Copy link

Dinjoralo commented Jan 22, 2025

I've left several games running for long lengths of time, and none of them seem to exhibit the issue. My problem might be isolated to the Kingdom Hearts games, which honestly tracks given they just have tons of jutter problems. I know this kind of behavior doesn't happen in Windows, though.

To have everything in one place;
GPU: Nvidia RTX 4070 Super
Steam Version: 1737514353, gotten via pacman
Distro: CachyOS

For reference, here's what I've ran;
Final Fantasy VII REMAKE INTERGRADE (With Gamescope)
AntonBlast (With Gamescope)
Like a Dragon: Infinite Wealth
Shin Megami Tensei V: Vengeance

I'm using Gamescope with the Kingdom Hearts collection as well. I could try playing the KH games run without gamescope. For now I'm going to try playing them with the native runtime version of Steam.
EDIT: Nope, native version still has the problem.
EDITEDIT: I'll also mention, having the Steam overlay turned off via LD_PRELOAD breaks Steam Input for me, contrary to what I've seen mentioned. Controller input stops working entirely in games unless I disable Steam Input in the game's properties. This probably is because of Gamescope.

@d3nd3
Copy link

d3nd3 commented Jan 25, 2025

I have researched/pinned down the more finer details of this issue as far as I could. After enabling logging, Timed out waiting for mutex in PutInternal() is spammed in the log at the time of the lag (~30 min or so of having game active). Research into this error shows that it has occured a few times in the steam client history.

I understand that steam uses shared memory IPC to communicate between threads/processes. Its more likely that some sort of producer/consumer code pattern is used such that both parties interacting with the shared memory have to not overstep each other. It seems that somewhere along the lines one is overstepping thus causing a gradual filling of the shared memory buffer causing one side (the producer/writer in this case) to wait, thus the blocking wait introduces delay in the frame until it quickly times-out.

This means I think the fault might lay in steam executable (it is not reading as fast as the gameoverlay is writing?) more than in the gameoverlay.so as had previously thought. I mean it is the interaction between the gameoverlay/gameprocess and the steam process contestion of said shared memory resource which is the issue. Code issue could be either side.

Of-course as we do not have the source code, my contribution is very little and mostly guessing in the dark, but I share this in hope it speeds up any said effort to get this bug fixed.

@Alois44623
Copy link

Alois44623 commented Jan 30, 2025

Got the same issue with the native linux builds of tf2 and gmod.
(kde plasma 6.2.5; arch linux; 6.12.10-zen1-1-zen; steam-native-runtime)

Disabling the overlay fixes it for gmod, but that also seems to completely disable the new game-recording feature.

@BorisBrock
Copy link

I'm using Arch with Kernel 6.12 + Gnome/Wayland + AMD Ryzen 7000 and AMD 7900XTX.

After playing GTFO or Steamworld Heist 2 for ~ 30 Minutes, the games go into "stutter mode". If I then move the mouse, the frame rate drops massivly. When not touching the mouse, the games still run flawlessly.

Is setting LD_PRELOAD still the official/recommended solution for fixing this? (haven't tried it yet)
What exactly is the issue here? What effect does the mouse movement have?

@alexzk1
Copy link

alexzk1 commented Jan 30, 2025

Is setting LD_PRELOAD still the official/recommended solution for fixing this? (haven't tried it yet)
What exactly is the issue here? What effect does the mouse movement have?

I did that and don't have the same problem with TESO any more. Stable many hours plays.
It just skips loading of the Steam's fancy additions. Have no idea what exactly it do, but why we would need it any way ? :/

@michaelBelsanti
Copy link

michaelBelsanti commented Jan 30, 2025

Replying to #11446 (comment)

The reason for the issue is explained for the most part in this thread, any fix will need to be done by Valve, since the issue is part of the steam client. I don't know if it's correct to call it an "official" fix, but it works, and I have seen Valve employees point people to this thread.

@BorisBrock
Copy link

BorisBrock commented Jan 30, 2025

The proposed solution seems not to work for me:

I've added LD_PRELOAD="" to the launch options for Steamworld Heist 2. But after ~30 min of playing, the game started to stutter extremely when moving the mouse. So nothing has changed...

@Syntrait
Copy link

Can you access the in-game overlay when playing the game? If you added LD_PRELOAD="", it should disable the Steam in-game overlay. If you can access it, then try adding %command% at the end of it.

@skipperro
Copy link

Having the same problem, started after the Steam Game Recording update as well, enabling the overlay fixed the problem.

I've reinstalled my whole OS, twice, in hope to fix this issue, before I found this page. 🤦
I could play about 30 minutes, then, despite FPS counter showing stable 60 FPS, every game felt like 10 FPS. Had to restart it have another 30 minutes of good performance.

After I enabled Steam Overlay the problem is gone. 🥳

@BorisBrock
Copy link

Can you access the in-game overlay when playing the game? If you added LD_PRELOAD="", it should disable the Steam in-game overlay. If you can access it, then try adding %command% at the end of it.

No, the overlay is not available (Shift + Tab does nothing).
Also I have disabled the overlay completely via the GUI: Steam -> Settings -> In Game -> Enable the Steam Overlay while in-game is set to off.

But as I said before, this seems to have no effect on the "game stutters after 30 minutes when moving the mouse"-effect 😉

After I enabled Steam Overlay the problem is gone. 🥳

Wait, what!? ENABLING the overlay was what solved your problem?

@alexzk1
Copy link

alexzk1 commented Jan 31, 2025

@BorisBrock use lsof on so files 2 versions: 64 and 32. Names are here around. Make sure using lsof that when game runs both are NOT loaded.

@skipperro
Copy link

skipperro commented Jan 31, 2025

@BorisBrock yes, enabling steam overlay fixed the issue for me. I had it disabled since... basically forever, because I never used it and it caused some issues few years ago. Then I got Steam update and started to have massive input lags and low FPS when moving mouse after about 30 minutes of play. I thought that there is something wrong with my OS or PC, tried a bunch of nvidia drivers, kernel versions, switched between wayland and X11 and even tried different Linux distros. This issue was grinding my gears for MONTHS.

Then I tried what @rafaberaldo wrote here - I've enabled steam overlay (also set game recording to start on Shift+F11) and after that I was able to have a few-hours play session without any issues.
I haven't done anything with LD_PRELOAD, just enabled steam overlay.

It's been few days now since I did this and everything is still running fine.

@alexzk1
Copy link

alexzk1 commented Jan 31, 2025

Hmm...looks like overflow in consumer/producer pattern than. If overlay is disabled it does not consume, but so still produces. At some moment it is out of memory pre-allocated and starts re-alllocations which do lags. Or pauses before replacing old values in circular buffer.
It is just speculations though.

@KibaGasteiz
Copy link

Wait, what!? ENABLING the overlay was what solved your problem?

Yes, this has been said already, I stopped having this issue as soon as I reactivated the overlay.

@pheki
Copy link

pheki commented Jan 31, 2025

These are the 2 most common workarounds in this thread, I would avoid replying with "this worked for me" as these are known workarounds that seem to work for most people who have this issue:

  • Either add LD_PRELOAD="" %COMMAND% to your launch options
  • Or ENABLE the steam overlay. Yes, the fix is unexpected, but you have to enable to fix it.

There are some other workarounds, if you want to adventure yourself, like chowning and chmodding the 64-bit gameoverlayrenderer.so, like here: #11446 (comment)

As pointed out on #11446 (comment), the actual fix probably needs to be done by valve, as the issue is in the steam client libraries.

(I'm tired of receiving the notifications of people discovering these workarounds again and again)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests