Hi all,
I am doing a shader for SSR and a value can be input to allow the user to increase/decrease the ray count
this is then used to do a while loop and at each iteration the ray steps along i am using [unroll(100)] for the 100 loop steps etc
now when i hard coded some values i got the results
50 loop steps it took 40 seconds to compile
100 loops steps took 7 mins to compile
I am just wondering is this normal and I know once i have finished working on this I want to put this into its own shader and compile a .cso and load in at runtime rather than compile at runtime to stop the long times
But then if my main shader does an include to another shader (where i aim to put the loop code) I cant see how i can compile it as a .cso and include it in or does the shader at compile time go into the include and process that all again?
Im happy to share code if needed and im running on a NVidia 980M laptop
Thanks
↧
Shader Slow Compile Times
↧