[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] GL_RENDERER string needed for performant apps
The reason the UA string became a problem is because browsers exposed different APIs for the same features. Developers responded by writing multiple versions of their code, and then switching based on UA string (instead of feature detection like they should). WebGL is different because the API is uniform across vendors. Developers will not need to write multiple versions of their code and the likelihood that people will switch code paths based on GL_RENDERER is much lower.
WebGL does expose differing levels of optional feature support, but there is already a standard feature detection framework that is easier to use than GL_RENDERER. Optional feature support is not well correlated with GPU vendor, so doing the wrong thing and using GL_RENDERER for feature detection would actually be quite difficult.