So, I’m curious about a few things. In the past week I’ve been doing a crash course on GLSL and aside from following tutorials I’m trying to do some stuff on my own.
Lately I’ve reached the “compile glsl shaders” part and all the resources on the net I see do the same thing - compile the shaders every time, on the main thread. There doesn’t seem to be a way to offload this on a worker thread. More importantly, there doesn’t seem to be a way to cache shaders either.
Knowing that UE4 caches shaders in the derived data cache AND that it compiles them asynchronously, I’d be very interested in hearing how this was achieved. Obviously I know UE4 isn’t exclusively GLSL but the general principle ought to be the same, no?