With three.js , is there a way to retrieve the polygon count of a scene? I did a search, but the only results that pop up at related to actual polygons and whether meshes have too many, etc.
I believe renderer.info.render.faces may be what you're after.
[ Update ] On Three.js revision r100 you would get that data through:
renderer = new THREE.WebGLRenderer();
// Code that loads your geometry here
console.log( renderer.info.render.triangles );
This same object has several a lot of data that can give you a hint over your memory leaks, so you might just want to console log the whole renderer object and browse all of its properties!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With