You are not logged in.

#1 2025-01-03 19:08:01

Frankwarch
Member
Registered: 2024-02-12
Posts: 27

Heavy stuttering in some games on Hyprland

I'm running a fresh install on a newly assembled desktop which I intend to use almost exclusively for gaming. Here are my specs:

frank(archfrank-desktop) | /home/frank $ neofetch
                   -`                    frank@archfrank-desktop 
                  .o+`                   ----------------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Kernel: 6.12.7-arch1-1 
               `+oooooo:                 Uptime: 37 mins 
               -+oooooo+:                Packages: 566 (pacman) 
             `/:-:++oooo+:               Shell: zsh 5.9 
            `/++++/+++++++:              Resolution: 2560x1440 
           `/++++++++++++++:             DE: Hyprland 
          `/+++ooooooooooooo/`           Theme: Adwaita [GTK3] 
         ./ooosssso++osssssso+`          Icons: Adwaita [GTK3] 
        .oossssso-````/ossssss+`         Terminal: kitty 
       -osssssso.      :ssssssso.        CPU: AMD Ryzen 5 3600 (12) @ 4.208GHz 
      :osssssss/        osssso+++.       GPU: NVIDIA GeForce RTX 4070 
     /ossssssss/        +ssssooo/-       Memory: 10250MiB / 15880MiB 
   `/ossssso+/:-        -:/+osssso+-
  `+sso+:-`                 `.-/+oso:                            
 `++:.                           `-/+/                           
 .`                                 `/

I've chosen Hyprland as my desktop environment because I used to run i3-wm and had sudden freezes in some games which made most of them unplayable. I had an Intel i7 CPU and an RTX 2060 Mobile GPU there. This problem disappeared completely when switching to Hyprland, without any intervention from my end.

I'm having trouble on this new setup because I'm getting some low-to-heavy stuttering, depending on the game. With this, I mean it "goes back" a couple frames and then comes "to the present" again.

For instance:

- God of War runs smoothly at 100+FPS with DLSS enabled.
- Elden Ring runs somewhat OK with some stuttering in specific locations (most noticeable when first going into an area after a while)
- Outer wilds is downright unplayable from the start. One time I waited for a while and it seemed to disappear, though.

I obviously followed the wiki when installing the drivers (which seem to work since God of War runs really well), have amd-ucode installed and have even tried switching drivers (both nvidia-open and nvidia). Of course, DRM is enabled and fbdev is too. Also, the CPU does not seem to be suffering too much in any case, but I'm having a hard time monitoring this in real time since I don't know any tools for properly benchmarking (for now I just switch back and forth between the game and htop/nvtop).

I would gladly listen to any suggestions on the topic. Thanks in advance.


New to Arch and Linux in general. Very happy for now!

Offline

#2 2025-01-03 21:18:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,897

Re: Heavy stuttering in some games on Hyprland

Some initial stutters can be normal due to shader generation happening and most of it somewhat depends on what exactly the game is doing and can somewhat be normal, sadly. If things stabilize after a while that's basically this in effect. It will generally get better the more you play, but depending on how games are implemented they might result in this.

Offline

#3 2025-01-03 21:34:27

tdtooke
Member
Registered: 2023-04-11
Posts: 202

Re: Heavy stuttering in some games on Hyprland

Can you build your shader cache before playing on any of those?  For SF6 and Starfield I prebuild my shaders.  You generally only have to do it once until something changes.  I have found if you skip that step on those games it's like what you described.  I haven't played any of the games you mentioned so maybe what I said doesn't amount to much.

Offline

#4 2025-01-04 01:34:22

Frankwarch
Member
Registered: 2024-02-12
Posts: 27

Re: Heavy stuttering in some games on Hyprland

tdtooke wrote:

Can you build your shader cache before playing on any of those?

When launching them I always let steam "do its thing" (i.e. let "Processing Vulkan shaders" finish). Today I played Elden Ring for a while longer, let the shaders compile fully and the problem disappeard altogether. Outer wilds is still unplayable, though. Strangely enough, steam doesn't let me pre-compile its shaders on the new desktop, but it does in my old computer (which I still have). I have also noticed a lot of errors like these

ERROR: ld.so: object '/home/frank/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libtcmalloc.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.

which do not appear when running Outer Wilds from my old computer. I have found this discussion. I will investigate further and come back later.


New to Arch and Linux in general. Very happy for now!

Offline

#5 2025-01-04 02:38:10

tdtooke
Member
Registered: 2023-04-11
Posts: 202

Re: Heavy stuttering in some games on Hyprland

I'm not the best at this sort of thing but that error looks like an architecture mismatch to me.  Do you have both a ubuntu12_32 and a ubuntu12_64 directory in your steam directory?  Or have the 32bit libraries installed?  Actually you searching around would probably find the solution quicker than me.

I could take a wild stab at it.  For one of the problem games try:

LD_PRELOAD=/home/frank/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so %command%

If it didn't like the one in ubuntu12_32 maybe it'll like the one in ubuntu12_64.  That's probably not it but that's all I have.

Last edited by tdtooke (2025-01-04 02:50:22)

Offline

Board footer

Powered by FluxBB