Replies: 3 comments 5 replies
-
for the stars alone it's mounting/remounting 200 react components on each render (so every time state changes). that also creates 200 gpu drawcalls. i've exchanged stars with points (1 single drawcall) https://codesandbox.io/s/floral-pine-ux3v1 ps. added some jump physics |
Beta Was this translation helpful? Give feedback.
-
Ok - now that I've snapped out of the amazement of all the improvements you've made, I want to dig a little deeper here, because I'm just starting to realize a few technical details/differences:
|
Beta Was this translation helpful? Give feedback.
-
Hey there,
Thanks for writing up common performance pitfalls - very handy and helpful.
I'm wondering if you wouldn't mind helping me debug/analyze the way I'm triggering my sheep to jump here?
https://codesandbox.io/s/withered-tdd-qtwv7?file=/src/App.js:630-762
I thought this way would be fine, but there seems to be a perceptible lag between the time of click before the sheep actually moves. Curious to get your take on this.
Beta Was this translation helpful? Give feedback.
All reactions