pmndrs / use-cannon

👋💣 physics based hooks for @react-three/fiber
https://cannon.pmnd.rs
2.76k stars 154 forks source link

Major performance regression in 2.3.4 #220

Closed TimvanScherpenzeel closed 3 years ago

TimvanScherpenzeel commented 3 years ago

Hi, I encountered a major performance regression with Cannon:

System: Windows 10 Browser: Chrome 91 Graphics Card: nvidia geforce rtx 2060 super

2.3.4 (bug) - 200 balls performance is very slow https://codesandbox.io/s/bug-ballpit-234-xwg3y

versus

2.3.3 (control) - 200 balls performance is fine https://codesandbox.io/s/control-ballpit-233-gfofn

drcmda commented 3 years ago

spreading the args fixes it? the patch is on npm

TimvanScherpenzeel commented 3 years ago

It works, thanks! 👍