utsuboco / r3f-perf

Easily monitor your ThreeJS performances.
https://codesandbox.io/s/perlin-cubes-r3f-perf-wtp9t?file=/src/App.js
MIT License
624 stars 24 forks source link

Reporting double amount of triangles #54

Open Igor-Vuk opened 3 months ago

Igor-Vuk commented 3 months ago

I know exactly how many triangles there are, and perf is reporting an exact double amount. If I use wireframe on material, it reports the correct amount.

"EDIT" Sorry, seems that it's something on my side since if I render just using , it reports correct number

benjaminmiles commented 3 months ago

@Igor-Vuk did you figure out what was causing the double-up? I'm experiencing the same thing. Exactly double the triangle count.

EDIT Figured it out. When a mesh castShadows it doubles the triangle count.