Hello. Valgrind shows that WebGL performance is lowered by WebGL validation methods like: WebGLRenderingContext::validateRenderingState, WebGLRenderingContext::validateUniformMatrixParameters or validations in drawElements/drawArrays. Those validations are done in the OpenGL driver. WebKit use those validations mostly for console output.
I propose to make some setting bool variable like: webgl_validations_enabled = true/false and use it in WebGLRenderingContext. So if webgl_validations_enabled = false then WebKit should not validate WebGL and performance will be increased. Typically user doesn't need those validations. It is helpful only for developers. So they can enable WebGL validations by check webgl_validations_enabled = true. In WebKit it is a variable indicating to print messages to console so for WebGL validations this solutions should also works. Regards, Przemyslaw Szymanski
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev