News for hackers. Stuff that matters.
Re:Show HN: Defrag the Game by apopapo on Monday September 02, 2024 @07:36AM (#41424530)
I get terrible performance in "hard" mode (seems to be due to animations?)

Nice educational game!

Re:Show HN: Defrag the Game by v_b on Monday September 02, 2024 @07:40AM (#41424559)
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!
Re:Show HN: Defrag the Game by eknkc on Monday September 02, 2024 @07:42AM (#41424579)
Is this completely in React? Just curious as this should be pretty easy to render.
Re:Show HN: Defrag the Game by v_b on Monday September 02, 2024 @08:16AM (#41424812)
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.

Re:Show HN: Defrag the Game by withinboredom on Monday September 02, 2024 @11:49AM (#41426454)
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.
Re:Show HN: Defrag the Game by ALittleLight on Monday September 02, 2024 @05:10PM (#41428859)
Performance seems to get worse about midway through. I assumed it was an intentional difficulty increase though.
Re:Show HN: Defrag the Game by hellohello2 on Monday September 02, 2024 @10:04AM (#41425465)
Lags for me as well on a recent Macbook pro. (Nice game though)