Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance degradation with onDoubleClick Event Handler #3292

Open
alouis-jpg opened this issue Jun 18, 2024 · 0 comments
Open

Performance degradation with onDoubleClick Event Handler #3292

alouis-jpg opened this issue Jun 18, 2024 · 0 comments

Comments

@alouis-jpg
Copy link

Description

When using onDoubleClick event handler on a group component wrapping several mesh, navigation considerably slows dow. It seems like raycasting is happening continuously instead of only on double-click events.

Expected Behavior

The onDoubleClick event should only trigger raycasting when a double-click action is performed, without causing a continuous performance degradation during normal navigation.

Actual Behavior

Navigation becomes noticeably slower, and the frame rate drops, suggesting that raycasting might be happening continuously, similar to the behavior seen with onPointerOver events.

Environment

  • Version: @react-three/fiber 8.15.19
  • Browers: Chrome 126.0, Firefox 127.0
  • OS: Windows 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant