Every game on Arcade Hub is a single web page with no downloads or plugins. Here are some of the techniques that keep them fast.
Draw glows once, not every frame
Neon glow effects look great but are expensive if the browser recalculates the blur on every frame. Instead, each glowing shape is drawn once into a small off-screen image, and the game then simply stamps that image wherever it's needed.
Reuse objects instead of creating new ones
Bullets, particles and sparks appear and disappear constantly. Creating new objects for each one makes the browser pause now and then to clean up memory, which shows up as stutter. Our games keep a fixed pool of objects and recycle them.
Fixed physics steps
Platformers and physics games run their simulation in small, fixed time steps. That keeps jumps, collisions and ball bounces identical whether your screen refreshes at 60 Hz or 144 Hz.
Only update what changed
Score counters and other on-screen text are only rewritten when the number actually changes, instead of every frame.
Testing every game
Each game was checked in a real browser for frame rate and memory use, and many have automated tests. For example, a bot plays every Pixel Peak and Gem Delver level to prove it can be completed, and a solver checks that every Mini Golf hole can be finished within par plus one.