filbs111 / 3sphere-explorer

visualising a 3-sphere from the inside in webgl
5 stars 0 forks source link

speed up rendering sets of objects by reducing webgl calls #14

Closed filbs111 closed 7 years ago

filbs111 commented 7 years ago

calling drawObjectFromBuffers many times to draw copies of same object repeatedly, which does gl.bindBuffer etc can try only doing the 1st bit (setting up buffers) once, then changing mvMatrix, drawing again etc. expect difference will be most noticeable (don't know if will be noticeable) when drawing 600-cell - getting 30 fps here (onboard graphics 4690k)

note that sticking objects together to reduce number of draw calls may improve performance, but outside scope.

filbs111 commented 7 years ago

alas, makes next to no difference