[SOLVED] After 45 minutes to 1 hour playing, some games lag like a slideshow when I move the camera. It only fixes when I close the game and open it again.

https://pixelfed.social/storage/m/_v2/580890896250132080/208209554-471e9e/YQ2YoRHgVd97/9xon4G8G7kxg330xjVT4ft6Sc690QtXYF2pocGqR.mp4

EDIT: Seems that adding LD_PRELOAD="" %COMMAND% on steam's launch options fixed my problem. Thanks a lot, everyone :)

I don't know why this happens, I tried playing on windowed, borderless windowed and fullscreen and this bug always happens.

Here's my fastfetch info:

OS: Arch Linux x86_64

Host: Nitro AN517-54 (V1.20)

Kernel: Linux 6.14.5-arch1-1

Uptime: 2 hours, 18 mins

Packages: 1271 (pacman), 20 (flatpak)

Shell: zsh 5.9

Display (eDP-1): 1920x1080 @ 60 Hz in 17" [Built-in]

DE: KDE Plasma 6.3.5

WM: KWin (Wayland)

WM Theme: Breeze

Theme: Breeze (Dark) [Qt], Breeze-Dark [GTK2], Breeze [GTK3]

Icons: breeze-dark [Qt], breeze-dark [GTK2/3/4]

Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK2/3/4]

Cursor: breeze (24px)

Terminal: konsole 25.4.0

CPU: 11th Gen Intel(R) Core(TM) i5-11400H (12) @ 4.50 GHz

GPU 1: NVIDIA GeForce RTX 3050 Mobile [Discrete]

GPU 2: Intel UHD Graphics @ 1.45 GHz [Integrated]

Memory: 4.34 GiB / 15.40 GiB (28%)

Swap: 0 B / 16.94 GiB (0%)

Disk (/): 255.23 GiB / 450.71 GiB (57%) - ext4

Disk (/mnt/ssd): 298.43 GiB / 439.04 GiB (68%) - ext4

Battery (AP18E7M): 33% (1 hour, 2 mins remaining) [Discharging]

Locale: en_US.UTF-8

74 points · 22 comments · view on lemmy.world

22 Comments

chloroken@lemmy.ml · 22 pts · 1y (1 reply)

Pass LD_PRELOAD="" as an argument on steam for the games that do this. It will fix your problem.

abobla@lemm.ee · 11 pts · 1y

I'll try it later and see if it fixes, thank you.

Also, thanks @noodlejetski@lemm.ee as well for this tip.

muhyb@programming.dev · 19 pts · 1y (2 replies)

Sounds like a memory leak. Have you checked your RAM and GPU memory when this happens? You can use btop and nvtop. If it's a memory leak, it shouldn't happen with every game though.

abobla@lemm.ee · 7 pts · 1y (1 reply)

Just got the bug to appear again. Plasma monitor shows 8.1/15.4GB of ram being used, but nvtop shows 100% GPU memory being used.

If the LD_PRELOAD="" command doesn't work, I'll see what I can do about the vram usage.

muhyb@programming.dev · 11 pts · 1y

Try lowering some VRAM-heavy graphics settings. This was happening with Elite Dangerous to me with Proton 6. It was fixed with later Proton releases but until then I played with lowered VRAM-heavy settings.

Blxter@lemmy.zip · 10 pts · 1y (4 replies)

Try disabling the steam overlay I had this issue with doom eternal. Assuming it's on steam and since I believe this is ac syndicate disable there overlay aswell has this problem with division 2

noodlejetski@lemm.ee · 9 pts · 1y

yup, and if that doesn't fix the problem, try adding LD_PRELOAD="" to the game's launch parameters

https://github.com/ValveSoftware/steam-for-linux/issues/11446

myersguy@lemmy.simpl.website · 6 pts · 1y

This, and specifically, you can also try disabling steam in game recording for whatever game is giving you trouble. I have found it to nuke performance in some games similar to what you are describing.

abobla@lemm.ee · 4 pts · 1y (1 reply)

By disabling the ac syndicate overlay you mean the ubisoft one?

Blxter@lemmy.zip · 6 pts · 1y

Yes that one in the launcher settings and as noodlejetski said that command should do the same thing I think

Ulrich@feddit.org · 8 pts · 1y (2 replies)

Are you monitoring component temperatures?

abobla@lemm.ee · 4 pts · 1y (1 reply)

No. That's a good idea, I'll start doing it.

Ulrich@feddit.org · 8 pts · 1y

Yeah the fact that it takes a while to start happening leads me to believe you may be thermal throttling somewhere.

kapitol@lemmy.ca · 7 pts · 1y (1 reply)

Hmm what is steam loading by default that clearing it would solve it?

aBundleOfFerrets@sh.itjust.works · 3 pts · 1y

afaik its for the new screen recording feature

DonutsRMeh@lemmy.world · 5 pts · 1y

Have you tried changing whatever compatibility layer you're using? Sometimes, I have some visual glitches and changing from, for example, GE-proton to proton experimental fixes it. Install an app called "protonplus" and find more compatibility layers from different folks.

BossDj@lemm.ee · 3 pts · 1y (1 reply)

I think heat

Alternatively, since it looks like you're running on battery, does something in your setup change to a "low power" performance mode that throttles your system?

abobla@lemm.ee · 3 pts · 1y

since it looks like you’re running on battery

Sorry for that, I ran fastfetch when I wasn't playing, but I always play using the charger. My laptop decreases it's performance when on battery, but it doesn't wait for low battery to decrease, it's instantaneous.

Shatpoz1288@lemmy.world · 2 pts · 1y (10 replies)
[ removed ]
Psythik@lemm.ee · 2 pts · 1y (3 replies)

Why are you using low settings on an RTX 4080? On a 4090 I can max out every setting and the game runs like a dream. Is the 4090 really that much more powerful or do you have a logical reason to turn down the settings so much?

Shatpoz1288@lemmy.world · 2 pts · 1y (2 replies)
[ removed ]
Psythik@lemm.ee · 1 pts · 1y (1 reply)

Well that does in fact sound like a memory leak issue to me.

Did you try another distro? How do your games run in Windows?

Shatpoz1288@lemmy.world · 1 pts · 1y
[ removed ]
Shatpoz1288@lemmy.world · 1 pts · 1y (5 replies)
[ removed ]
abobla@lemm.ee · 3 pts · 1y (4 replies)

nvidia gpu, my fastfetch info is posted in the post's body: GPU 1: NVIDIA GeForce RTX 3050 Mobile [Discrete]

Also, did you try the LD_PRELOAD="" %COMMAND% mentioned in the post? This solved the issue for me.

Psythik@lemm.ee · 1 pts · 1y (3 replies)
[ removed ]
abobla@lemm.ee · 1 pts · 1y (2 replies)
[ removed ]
Psythik@lemm.ee · 2 pts · 1y
[ removed ]
Psythik@lemm.ee · 1 pts · 1y
[ removed ]
WatTyler@lemmy.zip · 2 pts · 1y
[ removed ]
bjoern_tantau@swg-empire.de · 2 pts · 1y

Is it only when you use the mouse or keyboard? Used to have something similar a few years ago on my Steam Deck with some games. Never figured out what it was and I think it doesn't happen anymore.