
Robin
@solarise_webdev • 3,981 subscribers
Senior dev. Laravel, Craft, WordPress since 2010 - I run rescue & recovery for agencies when it hits the fan. Dad, gamer, walker. I like the cold.
Shorts
Videos

HTML can't run Doom But HTML can now run *inside* Doom! Thanks to HTML-in-Canvas! Fully accessible DOM elements drawn into Doom's own wall textures. This demo uses a WebAssembly port (jacobenget/doom.wasm) of the original C source. See it in action at - Requires Chrome with chrome://flags/#canvas-draw-element enabled. On every Doom tick, HTML-in-Canvas's drawElementImage() captures the DOM form (child of ) to an offscreen buffer, it's quantised to Doom's 256-colour palette, and the bytes are written straight into the cached patch for the appropriate texture in Doom. Doom's own software renderer then paints it onto E1M1 as a wall texture - which means perspective warp, sector lighting, and even the damage-red tint all get included and applied to the HTML form elements. It's just a texture to Doom.
Robin114,445 views • 2 months ago

A visual comparison of HTML-in-Canvas vs rasterizing DOM to a canvas texture (side-by-side below, compare average capture times) Existing approaches to pull web content into canvas are slow and lossy: - Animations glitch, or don't play at all - CSS replication is imprecise - Clogs up the main thread, other animations lag HTML-in-Canvas (texElementImage2D) lets the browser's own compositor map CSS layouts, animations, and transitions precisely into canvas/WebGL textures — one native call instead of thousands of JS style reads. It's currently available behind an experimental Chrome flag. Really cool, and I can't wait for it to become mainstream.
Robin46,432 views • 2 months ago

Pretext gives a massive performance boost for client-side pagination. An entire novel can be paginated on-the fly (with previews for each page) in 2-3ms per run vs 100ms+ for DOM Very cool and very responsive demo at (I think this is a fair comparison - there might be additional optimisations possible for the DOM approach, but can't escape the reflow trap)
Robin55,362 views • 2 months ago

HTML-in-Canvas will open a door for innovation on the web Create UIs and user experiences that are more engaging and sensible than ever before Very straightforward and accessible Extremely normal interfaces! Experimental - Requires activation of the chrome://flags/#canvas-draw-element flag in Chrome
Robin24,742 views • 2 months ago
No more content to load