I have made a shaderVariantCollection for my WebGL game and it does indeed stop the hiccups when async loading and then activating levels. However, it means there is a massive stall as the game starts up (or whenever I choose to warm up my variant collection).
Ideally I would like to get the list of all the variants and warm each one up individually dispersed over several frames (so it feels like it is just happening int he background). There i no interface on the shadervariantcollection itself to do this - is there any other way I can get hold of this list - somehow hooking into the way the GraphicsSettings window builds the collection in the first place?
↧