You are not logged in.

#1 2024-04-21 11:45:21

westy
Member
Registered: 2012-12-08
Posts: 10

[SOLVED] Vsync works in OpenGL but not Vulkan

Hi guys,

Been using Manjaro for a year or so now, but felt like a change, so now trying EndeavourOS and loving it so far.
I know it's not raw arch, but I feel it's a nice step closer...

Almost got everything I need up and running.

The thing that's puzzling me now is the fact my MangoHud config doesn't behave in the same way as in Manjaro.

I have vsync set to zero, which sets it to adaptive.
In Manjaro this works, and limits the FPS to the refresh of my monitor, 165hz.
I'm having trouble getting it working in EOS though. It appears to work in OpenGL but not Vulkan.

Running:

mangohud glxgears

Gives:

Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
826 frames in 5.0 seconds = 165.186 FPS
824 frames in 5.0 seconds = 164.794 FPS
X connection to :0 broken (explicit kill or server shutdown).

Running:

mangohud vkcube

Gives:

Selected GPU 0: AMD Radeon RX 7900 XTX, type: DiscreteGpu

I have a GPU on my 7800x3d which I use for my second (60hz) monitor.

My vulkan and AMD packages:

user@machine ~> pacman -Q | grep -e vulkan -e amd
amd-ucode 20240409.1addd7dc-1
amdvlk 2024.Q1.3-2
lib32-amdvlk 2024.Q1.3-2
lib32-vulkan-icd-loader 1.3.279-1
lib32-vulkan-mesa-layers 1:24.0.5-1
lib32-vulkan-radeon 1:24.0.5-1
vulkan-headers 1:1.3.279-1
vulkan-icd-loader 1.3.279-1
vulkan-mesa-layers 1:24.0.5-1
vulkan-radeon 1:24.0.5-1
vulkan-tools 1.3.269-1
xf86-video-amdgpu 23.0.0-2

The relevant bits from my Mangohud config:

### VSync [0-3] 0 = adaptive; 1 = off; 2 = mailbox; 3 = on
vsync=0

### OpenGL VSync [0-N] 0 = off; >=1 = wait for N v-blanks, N > 1 acts as a FPS limiter (FPS = display refresh rate / N)
# gl_vsync=

Which makes me even more confused that it works with the glxgears...

I appreciate any help or pointers you can give.

Cheers,
Westy

Last edited by westy (2024-04-24 16:31:58)

Offline

#2 2024-04-21 13:11:10

westy
Member
Registered: 2012-12-08
Posts: 10

Re: [SOLVED] Vsync works in OpenGL but not Vulkan

Just tried in Manjaro, and vkcube did limit to 165 fps.

Output was slightly different:

Selected GPU 0: AMD Radeon RX 7900 XTX (RADV NAVI31), type: DiscreteGpu

Is that using a different driver by default perhaps?

Offline

#3 2024-04-21 15:06:03

westy
Member
Registered: 2012-12-08
Posts: 10

Re: [SOLVED] Vsync works in OpenGL but not Vulkan

Okay, back in EOS and have installed `amd-vulkan-prefixes`.

Now I can see that when using AMDVLK I get no vsync, and using RADV I get it.

user@machine ~> vk_amdvlk mangohud vkcube
[2024-04-21 16:02:43.962] [MANGOHUD] [error] [overlay_params.cpp:1003] Failed to read presets file: '/home/martyn/.config/MangoHud/presets.conf'
Selected GPU 0: AMD Radeon RX 7900 XTX, type: DiscreteGpu
user@machine ~> vk_radv mangohud vkcube
[2024-04-21 16:02:52.008] [MANGOHUD] [error] [overlay_params.cpp:1003] Failed to read presets file: '/home/martyn/.config/MangoHud/presets.conf'
Selected GPU 0: AMD Radeon RX 7900 XTX (RADV NAVI31), type: DiscreteGpu

So, the one option is to switch to using RADV by default.
The other is figuring out how to make it work using AMDVLK.

Offline

#4 2024-04-21 15:16:17

westy
Member
Registered: 2012-12-08
Posts: 10

Re: [SOLVED] Vsync works in OpenGL but not Vulkan

Okay, the answer was to remove the AMDVLK package, and now appears to be working fine.

At least it suggests to try the RADV driver first here, so that's what I'm doing.

Offline

#5 2024-04-21 16:28:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,153

Re: [SOLVED] Vsync works in OpenGL but not Vulkan

Please mark as [SOLVED] by editing the title in your first post and note that for further issues we won't be able to help you since we only support vanilla Arch.  https://bbs.archlinux.org/misc.php?action=rules

Offline

#6 2024-04-21 17:40:04

westy
Member
Registered: 2012-12-08
Posts: 10

Re: [SOLVED] Vsync works in OpenGL but not Vulkan

Done, and sorry, I did wonder, but seems by far the most active place to ask for help.
I'll check out the EOS forums if have any further issues I guess.

Hopefully my findings might help someone else having similar issues too I guess.

Cheers

Offline

Board footer

Powered by FluxBB