4 ms·
> What? I've written commercial games with opengl on osx/ios and my experience doesn't show that at all. State-based recompilation is a known issue in many GL
by exDM69 8y ago
> What? I've written commercial games with opengl on osx/ios and my experience doesn't show that at all.
State-based recompilation is a known issue in many GL drivers, particularly on mobile. E.g. changing blending settings may cause shaders to get recompiled. This can take up to a second.
Some engines work around this by doing a dummy draw to an offscreen surface with all pipeline configurations that they use at init time. This (usually) guarantees that all the shaders are pre-compiled.