elm-explorations/webgl

Cache attribute locations for a program

w0rm opened this issue · 0 comments

w0rm commented

It seems that gl.getProgramParameter, gl.getActiveAttrib, gl.getAttribLocation can be cached for each program and not called for each draw.

This could improve the performance a little bit.