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

Linux + Vulkan: Game is freezing several seconds when launching dota, or navigating through menus, or starting/exiting a game, or leaving dota #392

Closed Mat9999 closed 8 months ago

Mat9999 commented 2 years ago

Your system information

Please describe your issue in as much detail as possible:

the game is freezing several seconds (5 to 10 seconds) when entering a menu, or when starting or leaving a game. When a game is started, there is no freeze during the game.

Steps for reproducing this issue:

  1. launch dota
  2. navigate through different menu or start a game, or leave a game, or exit dota
Mat9999 commented 2 years ago

There is no issue with OpenGL

32bitcolor commented 2 years ago

Confirmed issue on Arch, elementaryOS 6, Manjaro. Culprit appears to be the nvidia 495 driver, as rolling back to the 470 driver resolves the hanging. Here's my sysinfo gist

Mat9999 commented 2 years ago

Nvidia driver version is 470.82.00 on my setup and it has the issue.

kpatient commented 2 years ago

Getting same or similar issues. Game stalls most of the time for minutes when exiting and joining or disconnecting from matches.

Running Vulkan on Manjaro with Intel Iris Plus GPU (no nvidia). When running -gl this issue isn't present.

koreanfan commented 2 years ago

I have vulkan memory leak, when dota eat all my ram, my pc crash, only hard reset.

Mat9999 commented 2 years ago

The issue is still there. It is planned that openGL support will be removed as described in the November 15th, 2021 update: "Removed support for OpenGL on Windows. The optional DLC that previously contained the data required for OpenGL on Windows has been emptied and will be removed soon. Deprecation of OpenGL on macOS and Linux will be coming with a separate update. " When it will happens, it will be hard to use the game on Linux... I'm not sure if developpers are reading issues there, it makes a long time since this bug is here.

user827 commented 2 years ago

Copying my experiences from the duplicate issue:

The game has terrible loading times while using pre-compiled shaders: Clicking any menu item may hang the game for more than 10 seconds while it appears that the game is loading a 3d model which appears late. Character animation in the menu freezes multiple times. Starting a game takes much longer than it would if the shader pre-caching was disabled. Starting a new match takes about 5 seconds to load after clicking skip ahead without pre-cached shaders but it takes about minute if pre-caching is enabled. After a match has loaded, it plays fine though until returning to menu.

Disabling shader pre-caching from steam settings appears to fix the issue. It didn't seem like the hangs were about the game doing shader pre-compiling while the game was on because it never goes away and the cpu usage is not high.

Mat9999 commented 2 years ago

I have disabled shader pre-caching from steam settings, and have tested dota menus during 5 minutes, it seems this workaround is working. I will do more test when i will have more time.

Mat9999 commented 2 years ago

I confirm this workaround is working.

DashieTM commented 2 years ago

This is still an issue. You can "fix" it by using the -vulkan_disable_steam_shader_cache. But that had the consequence for me that I had to completely reinstall steam as I had completely broken shaders after a while. No matter what I did, it just didn't recompile them. Broken as in drops from 200fps down to 5.

ghost commented 1 year ago

Freezes still occur. -vulkan_disable_steam_shader_cache does not fix the issue, it just delays the freeze.

Mat9999 commented 8 months ago

I'm closing this issue, its an old one, and disabling shader pre-caching from steam settings did solve it.