ValveSoftware / Dota-2-Vulkan

Tracker for issues specific to the Vulkan version of Dota 2 on Windows, Linux, and macOS
101 stars 17 forks source link

Dota 2 Vulkan crashes with AMD Radeon RX 5700 and Manjaro Linux Stable version #380

Closed Zesko closed 2 years ago

Zesko commented 3 years ago

Your system information

Please describe your issue in as much detail as possible:

OpenGL works fine with Manjaro Linux and AMD Radeon RX 5700, but Dota 2 setting recommended that I switch OpenGL to Vulkan. I changed OpenGL to Vulkan (recommend) in Dota 2 video setting. But after restart, Dota 2 starts slower than 30 FPS, then freezes, then crashes. It forced the PC to restart. I am using Manjaro OS with stable version and default driver from Manjaro (amdvlk 3032.q2.2-1 and vulkan-radeon 21.0.3-3). How can I switch back to OpenGL in Dota 2 video setting? Why is Vulkan bug?

Steps for reproducing this issue:

  1. Start Dota 2 from Manjaro Steam.
  2. Switch OpenGL to Vulkan
  3. Restart Dota 2
  4. Dota 2 shows slower than 30 FPS (4 -17 FPS)
  5. Then freezes after 5 sec starting of Dota 2
  6. It forces PC to restart.
kisak-valve commented 3 years ago

Hello @Zesko, can you clarify if you're using amdvlk or mesa/radv with Dota 2? After determining which video driver is being used with the game, are you seeing the same behavior with the other video driver?

If only one video driver is affected, then that points towards a driver issue that should be reported to the video driver vendor.

Zesko commented 3 years ago

Hello @kisak-valve I can not clarify if i am using amdvlk or mesa with Dota 2. I did not change them as default from Manjaro stable branch.

I use GUI of hardware: It looks like standard. image

mesa 21.0.3-3 and different libs of mesa: image

Zesko commented 3 years ago

Hello @Zesko, can you clarify if you're using amdvlk or mesa/radv with Dota 2? After determining which video driver is being used with the game, are you seeing the same behavior with the other video driver?

I checked inxi -Fx in console: Output:

System:    Host: zesko Kernel: 5.10.36-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 Desktop: KDE Plasma 5.21.5 
           Distro: Manjaro Linux base: Arch Linux 
Machine:   Type: Desktop Mobo: ASUSTeK model: PRIME B450-PLUS v: Rev X.0x serial: <superuser required> 
           BIOS: American Megatrends v: 3002 date: 03/11/2021 
CPU:       Info: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2 rev: 0 cache: L2: 3 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 86425 
           Speed: 3070 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 1: 3070 2: 2207 3: 2378 4: 2143 5: 2101 
           6: 2161 7: 3128 8: 2172 9: 2988 10: 2410 11: 2063 12: 2167 

Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] vendor: Tul 
           driver: amdgpu v: kernel bus-ID: 0b:00.0 
           Device-2: Microdia Dual Mode Camera (8006 VGA) type: USB driver: hid-generic,usbhid bus-ID: 1-10:4 
           Device-3: Realtek WEB CAMERA M9 Pro type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-2:2 
           Display: x11 server: X.Org 1.20.11 driver: loaded: amdgpu resolution: 1920x1080~60Hz 
           OpenGL: renderer: AMD Radeon RX 5700 (NAVI10 DRM 3.40.0 5.10.36-2-MANJARO LLVM 11.1.0) v: 4.6 Mesa 21.0.3 
           direct render: Yes 
Zesko commented 3 years ago

What is still missing? Steam -> Right click on Dota 2 -> Select properties of Dota 2 -> DLC: image

There is no Dota 2 Vulkan Support. Need I install it? Where is it?

Turmfalke2 commented 3 years ago

How can I switch back to OpenGL in Dota 2 video setting?

right click dota 2 in your library -> Properties -> launch options -> insert -gl

That should force the game to start using opengl, regardless of what the current config file says.

Zesko commented 3 years ago

@Turmfalke2 It works, thank you!

I tried to install Dota 2 in Windows 10. It has DirectX, OpenGL and Vulkan Support in DLC Properties. Vulkan Support DLC works fine in Windows 10, but not Manjar Linux because Vulkan DLC is missing?

Turmfalke2 commented 3 years ago

Vulkan Support DLC works fine in Windows 10, but not Manjar Linux because Vulkan DLC is missing?

I think the vulkan dlc has been integrated into the main game. I don't have it in the list anymore and I can use vulkan for better performance at the cost of some stability that I am currently documenting in https://github.com/ValveSoftware/Dota-2/issues/1883 .

CatalinPuscoci commented 3 years ago

I'm also having the issue stated here, the game just starts with a black screen and is pretty much frozen. Using a 5700xt and mesa 21.2.1 drivers.

Luckily I don't have the issue where the whole PC freezes (probably due to running under wayland/sway?)

Happy to provide more info if needed.

Zesko commented 2 years ago

Solution:

Uninstall amdvlk that is unstable with Dota 2 in Manjaro/ArchLinux. Install radeon-vulkan to resolve this issue, it has better performance than amdvlk.