You are not logged in.

#1 2022-02-08 06:01:25

raiguard
Member
Registered: 2021-12-29
Posts: 11

[SOLVED] [AMD] Stutter exactly every five seconds.

After many months of trying to solve tearing and stuttering issues with my RTX 2060 Super, I got fed up enough to go purchase an RX 6600 XT. Not a good financial decision in these times, but there was no alternative to save my sanity.

Anyway, I got this card, I uninstalled the NVIDIA drivers, installed Mesa, and everything worked on the first try. I still had tearing, so I went and enabled the TearFree option. Now, I am getting silky smooth performance, except for a single-frame stutter once every five seconds, exactly. It's a lot more bearable than the completely arbitrary stuttering I was getting with NVIDIA, but is still annoying.

Steps taken so far:
- Tried with and without compositor (picom) - no effect.
- TearFree on and off - no effect.
- Single monitor @ 1920x1080x60 - no effect
- Switched to HDMI instead of DisplayPort - no effect
- Enabled VRR and used only my FreeSync monitor at 75 hz - still stutters, but is every 5.5 seconds instead of every 5.

Tests performed:
glxgears
__GL_SYNC_TO_VBLANK=1 __GL_SYNC_DISPLAY_DEVICE=DisplayPort-0 glxgears
vsynctester.com
Playing Factorio (native - windowed, borderless) and Planet Coaster (proton - windowed, borderless, and dedicated fullscreen)
Watching YouTube

Neofetch:

OS: Arch Linux x86_64 
Kernel: 5.16.5-arch1-1 
Uptime: 5 hours, 22 mins 
Packages: 954 (pacman) 
Shell: fish 3.3.1 
Resolution: 2560x1440, 2560x1440 
DE: Qtile 
WM: LG3D 
Theme: Qogir-dark [GTK2/3] 
Icons: breeze-dark [GTK2/3] 
Terminal: kitty 
CPU: AMD Ryzen 5 3600 (12) @ 3.600GHz 
GPU: AMD ATI Radeon RX 6600/6600 XT/6600M 
Memory: 9511MiB / 32078MiB 

journalctl
/var/log/Xorg.0.log

xrandr
/etc/X11/Xorg.conf.d/20-amdgpu.conf
dotfiles

journalctl is full of PCIe errors... those were happening with my NVIDIA card too, sometimes thousands of times a second. Could be related.

[Edit] Corrected link to Xorg.0.log.

Last edited by raiguard (2022-02-08 16:34:54)


Don't forget, you're here forever.

Offline

#2 2022-02-08 06:04:55

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,426

Re: [SOLVED] [AMD] Stutter exactly every five seconds.

Maybe there's redshift adjusting gamma ramp in background?


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#3 2022-02-08 07:04:00

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,746
Website

Re: [SOLVED] [AMD] Stutter exactly every five seconds.

Try Wayland instead, it has completely fixed the tearing problem. My AMD Cezanne iGPU doesn't suffer with it at all under sway or GNOME.

That won't work for Proton though so you will have to enable vsync for games that support such an option.


Para todos todo, para nosotros nada

Offline

#4 2022-02-08 07:29:32

raiguard
Member
Registered: 2021-12-29
Posts: 11

Re: [SOLVED] [AMD] Stutter exactly every five seconds.

kokoko3k wrote:

Maybe there's redshift adjusting gamma ramp in background?

...wow, you were right on the money. I disabled redshift, and the stutter instantly disappeared. I can't believe I didn't think of that! I've determined that the screen hitches whenever redshift updates. I can probably work around this by setting up a cron job to run redshift once when the sun sets.

Head_on_a_Stick wrote:

Try Wayland instead, it has completely fixed the tearing problem. My AMD Cezanne iGPU doesn't suffer with it at all under sway or GNOME.

That won't work for Proton though so you will have to enable vsync for games that support such an option.

I did try Wayland almost immediately after installing this card, but it crashed entirely when I tried to change my screen layout. Not quite there yet. Fortunately, kokoko3k found the solution, so we're good. Thank you!


Don't forget, you're here forever.

Offline

#5 2022-02-08 11:51:04

seth
Member
Registered: 2012-09-03
Posts: 60,964

Online

#6 2022-02-08 15:23:02

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,426

Re: [SOLVED] [AMD] Stutter exactly every five seconds.

It took me a while and discovered that, just because another similar system was running fine, so spotting the differences was a simple task.
For the record, it happen on intel too, but not on nvidia proprietary drivers.
Unfortunately it is not redshift itself, but something at lower level.

Maybe you can try other adjustments method in redshift.

redshift -m list

Last edited by kokoko3k (2022-02-08 15:25:12)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#7 2022-02-08 16:22:44

seth
Member
Registered: 2012-09-03
Posts: 60,964

Re: [SOLVED] [AMD] Stutter exactly every five seconds.

redshift might polling randr for the outputs (xrandr -q is slower than xrandr -c)
Did you ever file a bug about this?

Online

#8 2022-02-08 18:23:16

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,426

Re: [SOLVED] [AMD] Stutter exactly every five seconds.

Nope, from what i remember, but I might be wrong, even other utilities like dispwin that alters the video lut suffered from the same problem.
Found this:
https://bugs.freedesktop.org/show_bug.cgi?id=108917

Last edited by kokoko3k (2022-02-08 18:25:28)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB