~/talk

Heroes of Might and Magic in the Browser: Long, Difficult and Incredibly Interesting

TalkinRussianat JS Fest 2018 · on Saturday, 2018-03-31· [web-performance]

A browser port of Heroes of Might and Magic is described, covering concrete engineering solutions used to turn three years of evening work into a playable demo. Techniques include a C-based converter to read original HMM map files, three-layer canvas rendering with layered drawing and spatial trees for culling, flattening arrays for a 47% memory/speed gain and a bit-shift power-of-two trick giving ~62% speedups, promise-based animation to avoid setTimeout jitter, and practical approaches for handling on the order of 9,000 objects.

AI-written summary · about

  1. 0:00Introduction
  2. 4:20Game structure basics
  3. 10:02Parsing HommTTS maps
  4. 15:12Rendering optimization
  5. 23:26Memory storage optimization
  6. 31:14Event management
  7. 35:13UI responsiveness
  8. 41:00Pathfinding algorithms
  9. 46:19Three-year summary
  10. 48:40Browser demo
  11. 50:32Q&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.