hi, currently I'm facing to performance issue while using onPointerMove to draw a dot where mouse coordinates is
But when I use the event, even with empty function, it caused app become more laggy with model rotation or zoom in, zoom out, does anyone know how to work around, customize or fix this case?
my package.json
"dependencies": {
"@react-three/drei": "^9.105.6",
"@react-three/fiber": "^8.16.3",
"leva": "^0.9.35",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.23.0",
"three": "^0.164.1",
"web-vitals": "^2.1.0"
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^13.0.0",
"@testing-library/user-event": "^13.2.1",
"@types/jest": "^27.0.1",
"@types/node": "^16.7.13",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/three": "^0.164.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"react-scripts": "5.0.1",
"typescript": "^4.4.2"
},