You are not logged in.

#1 2021-12-21 06:19:51

sharp312
Member
Registered: 2021-12-21
Posts: 5

3D Applications forced to use vsync, unless run as root

For some reason, any application that uses my GPU is limited to 60fps and the frametime stays smooth at 16.7ms. I've tried disabling vsync system wide on my gpu by modifying the .drirc, checking vsync and fps limits are off in all my games, when I was on cinnamon I made sure compositing was disabled for fullscreen windows, I've switched my DE to gnome since after a bit of googling I found out cinnamon is really heavy on compositing but nothing has worked.

My monitor is only 60hz but with this problem I can feel input lag, its very minimal but its noticeable and that's what is irritating.

I tried booting up steam as root but it doesn't let you, so I cant test any steam games, but I launched lutris as root and any game I launched ran without this problem perfectly fine. I also tried Heaven benchmark, same limited fps run as user, unlimited when run as root

So I assume the problem is something to do with user permissions? Honestly I have no clue so that's why I'm here :p

My gpu is an RX590, any help would be really appreciated :)

Offline

#2 2021-12-21 08:25:19

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

Re: 3D Applications forced to use vsync, unless run as root

https://wiki.archlinux.org/title/Intel_ … on_(VSYNC)
You can disregard the intel context, dri2 is relevant to both.

Do you run X11 or wayland? If the former (and the dri setting doesn't cut it), please also post your xorg log.

Offline

#3 2021-12-21 09:10:15

sharp312
Member
Registered: 2021-12-21
Posts: 5

Re: 3D Applications forced to use vsync, unless run as root

Running on X11, I had already tried disabling vsync via dri2 (although I follow the instructions on the ATI wiki page, they're the same) but I tried again for sanity and sadly it did not change anything.

Heres my xorg log: https://pastebin.com/MurtNJhu

Interestingly though, now heaven runs uncapped, even after I removed .drirc (I made sure vsync was off in heaven settings both times). It's only games that are having this problem now, both native and wine/proton.

Offline

#4 2021-12-21 15:25:42

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

Re: 3D Applications forced to use vsync, unless run as root

[    22.303] (==) AMDGPU(0): TearFree property default: auto
[    22.303] (==) AMDGPU(0): VariableRefresh: disabled

https://wiki.archlinux.org/title/AMDGPU … _rendering - obviously turn it off.

Offline

#5 2021-12-21 15:48:24

sharp312
Member
Registered: 2021-12-21
Posts: 5

Re: 3D Applications forced to use vsync, unless run as root

Tearfree is now off, the problems still occuring

Offline

#6 2021-12-21 15:53:59

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

Re: 3D Applications forced to use vsync, unless run as root

Try to get the compositor out of the way and eg. openbox (to see whether the compositor is still syncing / not unredirecting the game)
Ultimately I'd then blame the game to not provide or adhere to a sync option.

Offline

#7 2021-12-21 16:14:28

sharp312
Member
Registered: 2021-12-21
Posts: 5

Re: 3D Applications forced to use vsync, unless run as root

I've tried using barebones I3 started using startx to eliminate the compositor, same problem. I just tried making another user account to run the game and the problem is not present when running the game from that account. The account I made had no sudo permissions while obviously my main account does. Edit: My main account also is apart of the video group, incase thats important

I must've changed something about my main account, but I don't *think* I have. My arch install is fresh from a few weeks ago but when I used arch before that I never had any behavior like this, any idea what I could've done?
Worst case scenario I guess I can make a new account and just migrate to that but I'd much rather fix the problem than work around it.

Last edited by sharp312 (2021-12-21 16:24:58)

Offline

#8 2021-12-21 16:25:51

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

Re: 3D Applications forced to use vsync, unless run as root

It's either a dri setting or a game setting - or co·in·ci·dence
Can you transfer the game settings from one account to the other?

Offline

#9 2021-12-21 16:33:57

sharp312
Member
Registered: 2021-12-21
Posts: 5

Re: 3D Applications forced to use vsync, unless run as root

I transferred all the game files to the other account, including the WINEPREFIX which should obviously bring the settings with it, and it works fine

Last edited by sharp312 (2021-12-21 16:36:06)

Offline

#10 2023-03-23 04:10:34

mechSkeletal5857
Member
Registered: 2023-03-23
Posts: 8

Re: 3D Applications forced to use vsync, unless run as root

has anyone solved this? I still cannot find out how to do this. I was hoping someone here figured it out. I have a 12700f cpu, and an amd 6900xt gpu.

Drivers are amdgpu mesa. DE is KDE plasma. I am using endeavorOS

Last edited by mechSkeletal5857 (2023-03-23 04:11:19)

Offline

#11 2023-03-24 08:50:25

d.ALT
Member
Registered: 2019-05-10
Posts: 951

Re: 3D Applications forced to use vsync, unless run as root

<EDIT>
Also, please don't necrobump
</EDIT>

mechSkeletal5857 wrote:

I am using endeavorOS

https://forum.endeavouros.com/

Forum wrote:

These boards are for the support of Arch Linux, and Arch ONLY

If you have installed Archbang, Artix, Chakra, EndeavourOS, Evo/Lution, Manjaro, Whatever, you are NOT running Arch Linux. Similarly, if you followed some random video on YouTube or used an automated script you found on a blog, you are NOT running Arch Linux, so do not expect any support, sympathy or anything but your thread being closed and told to move along.

(https://bbs.archlinux.org/viewtopic.php?id=130309)

Last edited by d.ALT (2023-03-24 08:51:54)


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

Board footer

Powered by FluxBB