this post was submitted on 09 Sep 2024
36 points (100.0% liked)

Linux Gaming

15250 readers
36 users here now

Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.

This page can be subscribed to via RSS.

Original /r/linux_gaming pengwing by uoou.

Resources

WWW:

Discord:

IRC:

Matrix:

Telegram:

founded 1 year ago
MODERATORS
 

Solution

This is a bug in KDE Plasma [1.1][2]. It appears that it might be fixed in KDE Plasma v6.2 [1.2][3].

Original Post

I have noticed this behavior with Element and Signal while playing Deadlock. The game will have a pretty severe stutter, ie the frame-rate will substantially dip, for half a second or so at the exact moment that a message is received. It seems to happen with every message. Do note that these are only messages that would result in a system notification. All other messages that are silent, ie they have no pop-up notification, do not result in any stutter.

  • OS: Arch Linux, Kernel: v6.6.49-1-lts
  • DE: KDE Plasma v6.1.4
  • WM: Wayland
  • CPU: Intel Core i5-4690k
  • GPU: AMD Radeon RX 6600

Updates

  • I have tried disabling this setting in Deadlock:
  • I have tried windowed-borderless
  • I have noticed that the moment that the stutter occurs, my CPU spikes maybe 20% and my GPU drops to 0%.

References

  1. @narc0tic_bird@lemm.ee. "Have you ever experienced stuttering in a game if you receive a message in a desktop messaging app during gameplay?". sh.itjust.works. Lemmy. Published: 2024-09-09T23:12:24Z. Accessed: 2024-09-10T00:03Z. https://sh.itjust.works/comment/13818926. https://lemm.ee/comment/14674507.
    1. it’s a bug in KDE Plasma

    2. [the bug] might be fixed [in KDE Plasma] 6.2

  2. "Bug 487780: Fullscreen game stutter when Plasma receives notifications.". Robert. bugs.kde.org. Published: 2024-05-30T03:58Z. Accessed: 2024-09-10T00:06Z. https://bugs.kde.org/show_bug.cgi?id=487780.
  3. Zamundaaa. "Bug 487780: Fullscreen game stutter when Plasma receives notifications.". bugs.kde.org. Published: 2024-08-19T12:01:08Z. Accessed: 2024-09-10T00:13Z. https://bugs.kde.org/show_bug.cgi?id=487780#c13.

    There are some remaining code paths that can block direct scanout - namely effects that haven't been fixed, or that may need to block direct scanout in some situations. There's a new API in 6.2 that effects can use though, https://invent.kde.org/plasma/kwin/-/merge_requests/6203, which blocks direct scanout only when really necessary. It's implemented for all built in effects, and external javascript effects automatically make use of this API too.

all 9 comments
sorted by: hot top controversial new old
[–] narc0tic_bird@lemm.ee 18 points 2 months ago (1 children)

Yes, it's a bug in KDE Plasma that might be fixed with 6.2: https://bugs.kde.org/show_bug.cgi?id=487780

[–] Kalcifer@sh.itjust.works 8 points 2 months ago* (last edited 2 months ago)

Thank you! Solved!

[–] ccf@lemmy.world 7 points 2 months ago (1 children)

I think there is a setting in some games where the FPS lowers when not focused, to save system resources. It happens with notifications for a lot of games I play too

[–] Kalcifer@sh.itjust.works 6 points 2 months ago* (last edited 2 months ago)

Thank you for the information! Perhaps that's what this setting is:

I will disable it and report back.

EDIT (2024-09-09T22:09Z): @ccf@lemmy.world, unfortunately, with that setting disabled, I still am experiencing the stuttering.

[–] Brewchin@lemmy.world 3 points 2 months ago* (last edited 2 months ago) (1 children)

Yep, with the desktop versions of Signal, Matrix (Element) and Steam chat.

I'm yet to try out gamemode, which may help. But I typically close Signal and Element when I'm gaming, so it's usually not an issue for me.

Edit: I'm on EndeavourOS, KDE, i7, 16GB, Nvidia 2060.

[–] kusivittula@sopuli.xyz 3 points 2 months ago

steam chat brings my machine to it's knees if any game is running. not only the game stuttering, the whole system becomes a potato. and this is on mint cinnamon with xanmod kernel, 7800x3d, 32gb, 3060ti...

[–] RandomLegend@lemmy.dbzer0.com 3 points 2 months ago (1 children)

Look into turning off desktop effects while playing there is a key combo for that with f12 of I remember correctly.

[–] jrgd@lemm.ee 4 points 2 months ago

Both not possible and unnecessary on Wayland.