~/talk

Lessons from Building a game engine from scratch in Gleam

Talkat LambdaConf 2025 · 2025-05-12..05-13· [frontend-architecture]
slides:none on file

A browser game engine built in Gleam is underway, chosen because it compiles to JS and Erlang so the client uses canvas while the server leverages the BEAM for concurrency. Concrete wins and headaches: sprite animation via requestAnimationFrame, handling 60fps logic on 120Hz screens, a 4.46ms rounding gap that costs ~15 frames/sec, and a 170ms pause equating to ~10 pending updates that can cause a death spiral unless capped. Implementations include fixed-update/variable-render and an accumulator to reclaim partial frames.

AI-written summary · about

  1. 0:00Building a game engine
  2. 2:03Why Gleam for browser
  3. 5:11Two key lessons
  4. 6:56Lesson one: game loop complexity
  5. 17:09Lesson two: AI and community
  6. 19:16Ambitious projects shape careers
  7. 20:41Should you take on ambitious projects
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.