flightlessmango / MangoHud

A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb
MIT License
6.11k stars 263 forks source link

Mangohud doesn't work with vkcube-wayland ? #1354

Closed SpidFightFR closed 1 week ago

SpidFightFR commented 3 weeks ago

Describe the bug A clear and concise description of what the bug is.

List relevant hardware/software information

To Reproduce Steps to reproduce the behavior:

  1. execute mangohud vkcube-wayland
  2. Cannot connect to wayland.
    Exiting ...

Expected behavior [should work, it works on my laptop with same specs]

Screenshots N.A

Additional context works with vkcube classic (xwayland).

SpidFightFR commented 3 weeks ago

for some reasons when i rollback to 0.7.0 release it works...

TeusLollo commented 3 weeks ago

Those are also relevant for testing purposes:

https://github.com/void-linux/void-packages/issues/50846#issuecomment-2171801496 https://github.com/void-linux/void-packages/issues/50846#issuecomment-2171872642

The above were on an RX580 GPU with mesa-vulkan-radeon-24.1.1_2 userspace driver package on a linux6.6 kernel version.

flightlessmango commented 2 weeks ago

can't repro this. works fine on my system with sway

shmerl commented 2 weeks ago

Works for me in Plasma 5.27.11. Could be your compositor specific issue.

SpidFightFR commented 1 week ago

Hey there, i finally found the issue: amdvlk was taking a higher priority over mesa RADV.

So i had 2 solutions:

Force RADV By default and force AMDVLK on a per-app basis (preferred method)

  1. edit /etc/environment
  2. add VK_ICD_FILENAMES='/usr/share/vulkan/icd.d/radeon_icd.x86_64.json'
  3. reboot
  4. If you need an app with AMDVLK, in my case, CP77 works better in path tracing with AMDVLK, then use env VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_icd64.json on each game.

Uninstall AMDVLK and only keep mesa radv.

  1. [See with your distro Package manager]