All articlesSTUDIO JOURNAL Subscribe to bilingual RSS ↗
Canvas game engineering
4 practical guides in this collection.
Canvas game engineering · 2 min read
A Canvas 2D particle pool with an allocation-free update loop for 144 Hz
Use fixed typed arrays, swap removal and an explicit overflow policy, then measure allocation during a repeatable burst.
Canvas game engineering · 2 min read
Fixed-step idle-game timing: equal production at 60 and 144 Hz
Separate display refresh, simulation time and offline settlement using a mining counter and a background-tab test.
Canvas game engineering · 2 min read
Profile Canvas 2D at 144 Hz: split update, drawing and high-DPI cost
Use a 6.94 ms refresh interval and controlled variants to diagnose fill rate, background redraws and allocations.
Canvas game engineering · 2 min read
Save offline income in a Canvas idle game without paying twice on refresh
Commit balance, rate and settlement time as one snapshot and test clock changes, sleep and concurrent tabs.