Canvas inspector ignores instanced arrays

Discussion of bugs in Mozilla Firefox
Post Reply
pailhead
Posts: 2
Joined: October 17th, 2016, 6:58 am

Canvas inspector ignores instanced arrays

Post by pailhead »

I'm playing with ANGLE_instanced_arrays and three.js. The canvas inspector reports 3 drawcalls where there should be 5. After the first clear call i see the instanced stuff drawn in the preview buffers but the only thing listed are 'regular' calls. Ie. when i click on the snapshot it shows the geometry drawn in the reported call but the instanced stuff is already in there without it being mentioned anywhere (2 missing draw calls).
User avatar
therube
Posts: 21703
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Canvas inspector ignores instanced arrays

Post by therube »

(Sample code [& not that I'd be able to do anything with it]?)
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
pailhead
Posts: 2
Joined: October 17th, 2016, 6:58 am

Re: Canvas inspector ignores instanced arrays

Post by pailhead »

There really isn't any special code i think. I use three.js so i'd have to consult the source, but also taking the bare essentials from here should replicate

http://blog.tojicode.com/2013/07/webgl- ... -with.html

Code: Select all


var ext = gl.getExtension("ANGLE_instanced_arrays") //get extension?

ext.drawElementsInstancedANGLE(gl.TRIANGLES, indexCount, gl.UNSIGNED_SHORT, 0, instanceCount) //draw

Result, this drawcall does not exist in the inspector. Any other does.

Wow, it's been almost a year :D
Post Reply