Journal
Nov 24, 2026·3 min read· WebGL

Why the 3D room opens full screen on phones

On a computer, this site's studio is part of the page: you scroll, the camera pulls back from a laptop screen, and you are standing in a room. On my own phone the same page froze near the bottom and sometimes took the whole tab down.

What was going wrong

Phone browsers kill a tab that uses too much memory, and they do it without an error. The page was holding, all at once:

  • the intro's WebGL context,
  • the room, with nine models and their textures,
  • a second rain simulation for the room's window,
  • several full-page screenshots, each many megapixels once decoded.

A desktop shrugs at that. A phone does not.

The fix was a design change, not an optimisation

On phones the page now carries a door: a still picture of the room and a button. The room is downloaded and built only when the button is pressed, takes the whole screen, and is removed again on the way out, models and all. While it is open, the intro stops rendering.

Three bugs disappeared with that one decision: the crash, a scroll position that could leave the room half visible, and panels that covered everything on a narrow screen.

The part I had to give up

The "this page was on a laptop all along" moment plays from a button on phones instead of from the scroll. It is a real loss, and still the right trade. A trick nobody can reach because the tab died is not a trick.

Takeaways

  • Memory, not frame rate, is the first wall on phones.
  • Two WebGL contexts on one page is one too many on mobile.
  • Unmounting is the only optimisation that always works.