On Thu, May 3, 2012 at 12:01 AM, Patrick Baggett <email@example.com> wrote:
Just by the way OpenGL works on the desktop, I'm thinking the answer is going to be "not without a lot of effort". If the browser vendors used "GL_ARB_get_program_binary" and kept a separate "compiled program cache", I think it is possible.But the thing we haven't solved with this caching is the first-load experience :/
It's worth noting that a great many desktop games will run through an "Optimizing shaders" step on first run or possibly during install. In that sense, the first-run experience for a WebGL app vs. a Desktop app wouldn't be that different.Trying to cache compiled shaders server side strikes me as a bad idea anyway. You're denying the driver an opportunity to make the best choices for that particular hardware.