~/talk

From Desktop to Browser: Crafting Browser-Native Game Engine with Webassembly

Talkat PyCon US 2025 · 2025-05-16..05-18· [webassembly]
links:none on file
slides:none on file

Shows how a Pygame project becomes a browser game using Pygame with pygbag and WebAssembly compiled via onscriptum and pyodide, producing static HTML/JS bundles and an in-browser virtual filesystem. Demonstrates a working snake demo, claims near‑native performance with frame time halved (6.3 → ~3.1), particle update rate doubled, and CPU use dropping from 95% to 45%. Explains async game loops, flip vs blit, asset packaging, and that the browser build runs successfully.

AI-written summary · about

  1. 0:00Browser-native game engines
  2. 1:09What is WebAssembly
  3. 3:57Python vs WebAssembly flow
  4. 6:44Performance gains
  5. 8:29Python to WebAssembly with Pyodide
  6. 11:38Pyodide basics
  7. 14:51Pygame fundamentals
  8. 19:28Pygame game loop
  9. 24:29Pigbag for web
  10. 26:56Adapting code for Pigbag
  11. 30:28Snake game with Pigbag
  12. 31:30Summary and Q&A
~/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.