Tresjs / tres

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

Adding event to primitive test/nuxt lagging model #797

Open Adham2023 opened 1 month ago

Adham2023 commented 1 month ago

Describe the bug

I have added event, for example: @double-click="onDoubleClick" it make model lagging:

https://github.com/user-attachments/assets/e2404590-8f63-4650-b390-85116dff840b

Reproduction

https://pre-release.3d-orthoplan.com/6698f67471af3db950bcd1a6

Steps to reproduce

No response

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (32) x64 Intel(R) Core(TM) i9-14900K
    Memory: 31.75 GB / 63.75 GB
  Binaries:
    Node: 20.15.1 - C:\Program Files\nodejs\node.EXE
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.5.0 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527

Used Package Manager

pnpm

Code of Conduct

Adham2023 commented 1 month ago

It is a bit not noticable when you not open dev-panel of browser, why it becomes much more laggy when you open dev-panel of the browser ?

alvarosabu commented 3 weeks ago

Hi @Adham2023 could you please provide me which versions of are you using.

Also, how many polygons the model has?

Thanks