I have a bunch of .usf compute shaders. On lower-end devices the shaders take MINUTES to compile at startup, even half an hour sometimes. Some users even crash multiple times before they can finally compile which is unacceptable.
It’s only about 4 compute shaders.
Is there a way to precompile them for other devices? Thanks!
Hey there @TheWorm141! When it comes to any shaders, it’s possible to pre-cache some of the necessary components, but not all of them due to much of the required data being environment specific. Generally I would recommend PSO cache bundling to mitigate compilation and caching problems. It sounds like you are already pre-loading which is a good start.
Often it’s recommended to load the essentials to play the game first at their lowest resolution and LOD and use that and lazy load asynchronously if you don’t wish for the players to load all of them at once in the menu.