Hacker News new | ask | show | jobs
by apopapo 654 days ago
I get terrible performance in "hard" mode (seems to be due to animations?)

Nice educational game!

2 comments

Haha, I never played in "hard" mode because it was too challenging for me. That's probably why I didn't optimize the performance as much in that mode. Thanks for the feedback!
Is this completely in React? Just curious as this should be pretty easy to render.
It is. To be hones I played it now in "hard" and the peformance was absolutley fine.

I know that some browsers has still issues when it comes to pure CSS animations as they are running on the GPU and when the Hardware acceleration is disabled the CPU goes sometimes crazy.

I had the same on an animation GitHub a while ago used on their landing page.

Issues seem to be random, it is like the board shifts back and forth to the right/left until it settles, causing performance to tank until it settles.
Performance seems to get worse about midway through. I assumed it was an intentional difficulty increase though.
Lags for me as well on a recent Macbook pro. (Nice game though)