That one dev comment about keyboard controls saved my whole week
Heads up if you make small web games: I tried 4 different fixes for controls that felt laggy and none of them worked. I changed my game loop to check keys on keydown and keyup instead of scanning every frame, and input got twice as snappy on my old laptop. But then holding a key made the player stutter, so I added a tiny buffer that keeps the key active until the release event fires. On a 2016 ThinkPad I went from 40fps with jumpy moves to a steady 60 in about 90 minutes of tinkering. One dev on the r/gamedev thread summed it up as "read the events, don't poll the world" and it finally clicked. What's the weirdest input trick you've used in a browser game? I want to compare notes.