Tresjs / tres

Declarative ThreeJS using Vue Components
https://tresjs.org
MIT License
2.17k stars 102 forks source link

V4 drops fps #711

Closed Dekier closed 4 months ago

Dekier commented 4 months ago

Describe the bug

After updating to version 4, my frame rate drops when I move the cursor or zoom in and out of the camera. Component: CanvasBackground.vue

Is only one model Icosahedron.

Reproduction

https://github.com/Dekier/tresjs-drops

Steps to reproduce

pnpm install pnpm dev

System Info

No response

Used Package Manager

pnpm

Code of Conduct

garrlker commented 4 months ago

Hey @Dekier !

Thanks for the reproduction, I'm looking into this issue

alvarosabu commented 4 months ago

Hi @Dekier I just checked the reproduction, the icosahedron you are using has a massive detail count. Take a look at the screenshot, I added a wireframe material and the triangles are barely visible

Screenshot 2024-06-02 at 12 31 20