pex-gl / pex-renderer

Physically based renderer (PBR) and scene graph for PEX.
https://pex-gl.github.io/pex-renderer/examples/index.html
MIT License
234 stars 16 forks source link

Profiler doesn't count instanced geometries #260

Closed vorg closed 4 years ago

vorg commented 4 years ago

We are wrapping extension call but ctx is already created and function polyfilled. We need wrap gl call instead.

// TODO: what about webgl2? -> not relevant anymore, as we are wrapping gl call
// old code
  //wrapGLExtCall(
    //gl.getExtension('ANGLE_instanced_arrays'),
    //'drawElementsInstancedANGLE',
    //(args) => {

  wrapGLCall('drawElementsInstanced', (args) => {