WebGL-Inspector
WebGL-Inspector copied to clipboard
Profile vertex- and fragment-shaders
Hey! Thanks for a fantastic tool, it has helped me over and over again.
At the moment I'm trying to figure out a way to profile vertex- and fragment shaders. This has proven quite difficult, as it seems as .drawElements runs in a separate thread, and that's why I turn to you. Any ideas?
Thanks for the suggestion! This is actually something I plan on working on fairly soon. It will require some custom browser support, though, because of the issue you mentioned and I may only be able to get it going in Chrome.
Fantastic news! Chrome support will do it for me, at least. I'm working on a big WebGL-project for a very well-known customer and I'm in need of all kinds of tools that help development. Is there anyway I can help you move faster on this feature?
I came to think of a way to actually profile a draw-call: do a readPixels right afterwards. The readPixel has to wait for the draw call to finish to be able to read back the right pixels. What do you think?
I read up a bit and there's an interesting function called gl.Finish which could be use to profile calls. If I get some time I'll look into it.
relevant. Browser specific implementations :-1: