Performance Problem


I found a problem in level 7 where the physics didn't work out as intended and the object limit was too strict to make the puzzle solvable. I fixed it in the next version of the game, but I decided to optimize it for "Better Runtime" instead of "Shorter Build Time". The result: the game runs half as fast. Why.

Immediately afterwards (in fact minutes before I wrote this), I fixed it. Now I know not to ever optimize a game for "better runtime".

UPDATE: Later I found myself running into the same problem again, but the file hadn't even changed. Clearly, something was wrong with my theory. Then I realized that HTML5 games run significantly slower when your battery is running low. I added a piece to the description warning that plugging in your computer will make the game run better.

Leave a comment

Log in with itch.io to leave a comment.