protonscr

Ghost Wire Tokyo renderthread timeout with RT due to excessive compile times in dxil-spirv

vkd3dclosed
HansKristian-Work/vkd3d-proton#1534 · opened 2023-04-21 by CME42 · updated 2023-05-10 · 0 comments · github
CCME42 2023-04-21 github

When RT is enabled in GWT the renderthread will timeout due to long compile times in dxil-spirv in a couple of shaders, this shader for example takes over 8 min to compile:
/home/cme/git/dxil-spirv/build/dxil-spirv 319a735725ad20a1.lib.dxil 499,87s user 0,01s system 99% cpu 8:19,94 total

perf top:

  87,07%  libdxil-spirv-c-shared.so.2.24.0  [.] dxil_spv::CFGNode::dominates
  12,12%  libdxil-spirv-c-shared.so.2.24.0  [.] dxil_spv::CFGNode::traverse_dominated_blocks<dxil_spv::CFGStructurizer::rewrite_invalid_loop_breaks()::{lambda(dxil_spv::CFGNode*)#1}>
   0,75%  libdxil-spirv-c-shared.so.2.24.0  [.] dxil_spv::CFGNode::find_common_post_dominator

shaders:
https://drive.google.com/file/d/1UJq87VQXWS9LJcoczbWI1lMjnVuvtfEb/view?usp=share_link

Nothing extracted yet.