> for example, it will randomly recompile shaders behind your back while you are trying to have a smooth frame rate.
What? I've written commercial games with opengl on osx/ios and my experience doesn't show that at all.
What? I've written commercial games with opengl on osx/ios and my experience doesn't show that at all.
https://www.opengl.org/discussion_boards/showthread.php/1998...
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.