You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, @Adham2023. I am just checking in to see if you can give me more info about the model you are using and the versions, we have other reports of pointer events lagging when using models with several nodes
Currently, you should be able to work around the slowdown by removing the events from the high-poly model. Instead attach the events to a hitbox – a placeholder Mesh with a simpler geometry that occupies approximately the same space as the high-poly model.
The hitbox can't be an ancestor of the high-poly model or the high-poly model will still also be hittest against. The hitbox can be a sibling or a descendant of the high-poly model.
There's an issue with Tres v4 events, where any events attached to an object (or its ancestors) leads to the object being hittest for all incoming events (e.g. 'pointermove'), even it it doesn't respond to that particular event, e.g. here, only @double-click is attached.
There is a PR (#844) underway that will address the issue. Scheduled for Tres v5.
Describe the bug
I have added event, for example: @double-click="onDoubleClick" it make model lagging:
Recording.2024-08-12.144048.mp4
Reproduction
https://pre-release.3d-orthoplan.com/6698f67471af3db950bcd1a6
Steps to reproduce
No response
System Info
Used Package Manager
pnpm
Code of Conduct
The text was updated successfully, but these errors were encountered: