Noatun: six days under water
Six days ago I put a browser demo on a Quest 3 to see if it would run. Tonight there is a film, a page, and a headset on my desk with a humpback whale in it. This post is a presentation of the thing, a tour of what was hard, and at the end a question I can’t answer myself.
Eighty-five seconds, 4K. Every frame is rendered by the app itself; the agent flew the camera, cut the film and synthesised the pad under the game’s own ambience.
What it is
Noatun: Sunken Gardens is a diving garden in VR, running natively on Meta Quest 3 with no computer attached. You slip under the surface and swim. Kelp forests, coral, sunken ruins, and the animals that live among them. There is nothing to win and nowhere you have to be. You steer by looking where you want to go.
The page is at h0bb3.github.io/noatun.
Whose sea this is
The honest part first: the sea is not mine. Noatun is built on Abyssal Garden by Maksymilian Dendura (Noniv), a WebGPU scene that runs in a browser tab and looks far better than a browser tab has any right to. It is MIT licensed. Its light, its fog, its caustics, its kelp and its colours are the reason this project exists at all.
So the first rule in the brief I gave the agent was not a feature. It was a prohibition: keep the original look. Do not replace it with a simpler scene. Everything below is what that one sentence cost.
The humpback is fourteen and a half metres long, which is what a humpback is. She was a good deal shorter until I saw her in the headset and said she looked rather small.
Fifty milliseconds is not fourteen
A browser tab on a desktop GPU draws one picture as fast as it likes. A headset draws two, and at 72 Hz it has a little under fourteen milliseconds for both. The first measurement of the original scene on the Quest’s GPU, at 1024 pixels an eye, was about fifty milliseconds a frame.
The cheap way out is obvious: fewer plants, flatter light, no light shafts. That was the forbidden way. What happened instead was slower and more interesting:
Every costly part got its own knob. Light-shaft samples, leaf detail, draw distance, depth prepass, resolution. Presets named low, medium, high and original set them all, and original is exactly the original.
A picture test stood guard. After every optimisation the app renders the reference view headless, in stereo, and compares it with the original’s own image. The current error in the original preset is 0.00003 of one step of 255, per channel. An optimisation that moved that number did not go in.
Geometry learned distance. Simplified meshes further out, built at compile time. Distant leaves are thinned, and the leaves that remain grow wider, so the cover stays the same. I had seen that trick in a reel about rendering flower fields and asked if we could use it. The answer was that it was already in.
The lens does part of the work. The edge of a headset lens is blurry, so shading there at full density is wasted. Telling the GPU to shade the edges coarsely needed a Vulkan extension the graphics library doesn’t expose, so the project carries a small, documented patch to it. There is a second patch for the Quest’s GPU driver misreading a draw call.
The medium preset now measures between fifteen and nineteen milliseconds on the headset’s GPU in an offscreen run, depending on what swims past, and the GPU runs a faster clock in VR than offscreen. It is close to the budget, not comfortably inside it, and the app can trim its resolution when frames run long.
The dead ends are in the repository too. A software version of the lens trick measured slower in every viewpoint and was switched off. Four-times multisampling lives on a branch whose commit message ends “(not viable on Quest 3)”. Frame synthesis is implemented and has never run in a headset. I’d rather list those than pretend the path was straight.
A world from a number
The original world is laid out by hand: its rock, arches and clearings are tables in a JavaScript file, grown into a seabed when the page loads. One world is one dive.
So the world builder was ported to Rust, and the port was held to a brutal standard: fed the original’s own input, it reproduces every buffer of the original byte for byte. Only then was it given a seed. Any number from 0 to 999999 now grows its own seabed on the headset when the dive starts, with the original’s kinds of places in a new arrangement, a road that is checked to be swimmable, and one or two things to find.
One of sixteen things a world can hold. Twelve statues from antiquity are 3D scans of plaster casts from SMK, the National Gallery of Denmark, which publishes them in the public domain.
Animals without bones
The original’s animals are built in code, a few hundred triangles each, and swim by being bent in the vertex shader. No skeletons, no animation files.
The shark, the turtle, the whale and the reef fish are now models generated with Tripo (that is my invite link). The trick was to not rig them at all. An importer lays each model exactly where the hand-built one lay, nose to tail, and the same shader bends ten thousand triangles the way it bent six hundred. The four reef fish came out of a single generated model, one species in each quarter, because one generation costs fewer credits than four. The importer cuts the sheet apart.

The headset the agent cannot wear
This is the challenge that has nothing to do with graphics.
Almost all of this was written by an AI agent working in my repository, and the agent cannot put on a headset. It can build, install over USB, and run the renderer on the Quest with the screen off to measure it. It cannot see what I see. The Quest also refuses to start a VR app from a cable without someone inside the Guardian boundary, which is correct of it and inconvenient for us.
So everything that can be checked without eyes is checked without eyes: the picture test, more than sixty unit tests, timing runs on the device. And everything else waits for me to say things like “the whale is small”.
Two failures from this week, because they are the instructive part:
The stale binary. I reported that at dusk the light rays passed straight through rock. The agent fixed it, rendered stills, and told me the shadows now looked right. They did, in pictures rendered by the old program, built before the fix. It caught this itself on the next run and said so. The lesson is the oldest one there is: know which build you are looking at.
The tipped sea. After the headset had been passed between a few people, I had to look down and tilt my head hard to swim straight, and with my head level I spun in circles looking at the sky. The cause was one line. When the headset’s tracking space resets, the app puts you back where you were in the world, and it was taking the head’s pitch and tilt along with its heading. Put the headset on crooked at the wrong moment and the whole sea was tipped by exactly that much. The fix keeps only the heading, and the right grip now stands you upright again. That build went onto the headset tonight. I have not swum in it yet, so “fixed” is, for the moment, a claim made by tests.

The numbers
| Metric | Value |
|---|---|
| Days since the first commit | 6 |
| Commits | 111 |
| Rust written | about 22,000 lines |
| Unit tests | 60+ |
| GPU time per frame, first measurement | about 50 ms |
| GPU time per frame, medium preset now | 15 to 19 ms offscreen |
| Image error against the original, original preset | 0.00003 / 255 |
| Worlds | 1 by hand, 1,000,000 by seed |
| Imported animals | shark, turtle, humpback and calf, 4 reef fish |
| Times the agent has worn the headset | 0 |
The question
Here is where I need you.
This was a week’s experiment that got out of hand. It is not on a store. There is no download. I don’t know if it should be free or cost something. I don’t know if “a place to swim, with nothing to do” is something people want in a headset for more than five minutes, or exactly the thing they want after a day of everything else.
So, plainly: should this continue?
If you own a Quest, would you put this on? What would you want to find down there? Would you want it calmer or stranger? Would you pay for it, and if not, would you sideload it?
Leave a comment on the film. If the answer is silence, that is an answer too, and I have retired things on this log before for exactly that reason. If it isn’t, the next post is about what’s further out, where the seabed ends and the water keeps going.