ValveSoftware / Dota-2-Vulkan

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

Terrible loading times when vulkan shader pre-compiling is enabled #401

Closed user827 closed 2 years ago

user827 commented 2 years ago

Your system information

Please describe your issue in as much detail as possible:

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 has multiple pauses. 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.

Steps for reproducing this issue:

  1. Start the game after steam has finished processing the vulkan shaders.
  2. Observe the hangs while trying to start a solo match against bots for example
user827 commented 2 years ago

Oh, I think this is the same bug: https://github.com/ValveSoftware/Dota-2-Vulkan/issues/392

kisak-valve commented 2 years ago

Hello @user827, feel free to add your experience to the older issue report. Closing as a duplicate.