CT82.A7.Laboratory — the secret laboratory, the ride (no wall panel, half the windows)
© 2026 Michael Wahrman. All rights reserved.
Label: F (fantasy / art) — assumed, not yet confirmed by Michael (ISSUES Q2).
A7 is a copy of CT82.A6.Laboratory (A6 is left as it was) with only the change below. Everything else is A6 as it was; see ../CT82.A6.Laboratory/CT82.A6.Laboratory.md, and for how the ride, ladders and film look work, ../CT82.A2.Laboratory/CT82.A2.Laboratory.md.
Run: node tools/serve_dev.js 8828 and open http://127.0.0.1:8828. In this app's browser pane the launch entry is ct82a7.
Michael's request for A7 (2026-12-02, verbatim)
- We want to get the frame rate up, so please remove the last high voltage control panel and remove about half the windows.
Item 20 (no invented thematic extras) still stands: nothing was added.
What changed
- The wall panel is gone. The last quarter left in A6 is removed:
- the slate and its rails;
- the two insulator stacks with their cables, and the bus bar;
- the MAIN knife switch and its lamp;
- the kilovolts meter;
- the three chase lamps and the column of eight ladder lamps.
Things that existed only for the panel went with it:
- the last floor cable from the panel to the coil;
- the Panel camera view (the menu now has Ride, Wide, Low, Ladder, Gallery; keys 1–5);
- the code that turned the switch blade, needle and lamps each frame.
All four switches and both knobs still work from the right-hand column and the keys, as before. There is nothing left in the scene to click.
- Liberty: the ride used to turn the camera towards the panel as it passed (around z = 5). With the panel gone, that turn would have stared at a bare brick wall, so the ride now just looks ahead there. It still turns towards the coil as before.
- Not changed: the panel's lamp and meter state in
_lab.js still runs; nothing is drawn for it (ISSUES I9). - Half the windows are bricked up (4 of 8). The hall had 8 glazed windows: 5 tall ones on the right (+x) wall, 2 tall ones on the
back wall and a small high one over the middle of the back wall. Removed:
- the right-wall windows at z −15 and z +7 (the 2nd and 4th from the back);
- the back-wall window at x +12;
- the small high window over the back wall's middle.
Kept: the right-wall windows at z −26, −4 and +18, and the back-wall window at x −12. Each removed window lost its glass, its 18 iron glazing bars and, on the right wall, its sun shaft (5 shafts → 3). The openings are now solid brick. No window had a light of its own; the sun is one light for the whole hall and is unchanged. The sun still comes through only the windows that are left, so the patches of sunlight on the floor are fewer.
- Liberty: the reflection map (what polished metal reflects) had 5 bright window shapes for the right wall. It now has 3, matching the windows that are left. This costs nothing per frame (it is made once at load); I changed it so the metal doesn't reflect windows that are gone.
Frame time, A6 vs A7 (item 33's goal)
How I measured. The app's browser pane was hidden, so its own frame rate (about 8 fps) only shows the pane being throttled. Instead, in each page I drew frames directly and timed them:
- The page was freshly loaded and the same state set in both: MAIN on, everything else off, no bolts, show stopped.
- Size fixed at 1280×720 and then 1920×1080.
- I called the app's own whole-frame render (scene, bloom, film pass) N times (25 at 720p, 15 at 1080p) after 5 warm-up frames.
- After each frame I read back one pixel, which makes the browser wait until the graphics card has finished. So the time covers both CPU and GPU work.
- Each figure is the median of 3 runs. Runs agreed within about ±0.4 ms.
- The 5 cameras are identical in both versions: the four fixed views, plus one fixed position on the track (−6, 1.75, 6.4) looking at the wall where the panel stood.
The ride view was not used, because A7's ride no longer turns to the panel, so it would not be the same picture.
- Machine: AMD Radeon integrated graphics (ANGLE / Direct3D 11), in the app's browser pane, 2026-12-02.
| View | A6, 1280×720 | A7, 1280×720 | change | A6, 1920×1080 | A7, 1920×1080 | change |
|---|
| Wide | 14.12 ms | 13.35 ms | −5 % | 26.87 ms | 25.43 ms | −5 % |
| Low | 14.15 ms | 13.30 ms | −6 % | 26.99 ms | 25.94 ms | −4 % |
| Ladder | 16.10 ms | 15.36 ms | −5 % | 31.15 ms | 30.17 ms | −3 % |
| Gallery | 15.60 ms | 14.92 ms | −4 % | 30.02 ms | 28.80 ms | −4 % |
| Toward the panel wall | 12.49 ms | 10.94 ms | −12 % | 24.55 ms | 21.27 ms | −13 % |
Draw calls in the scene pass (including the shadow pass): Wide 94 → 71, toward the panel wall 121 → 55. Triangles: Wide 88.5k → 81.8k, toward the panel wall 96.8k → 60.6k.
At 1280×720 this machine was already faster than 24 fps (41.7 ms) in both versions, with or without the change. At 1920×1080 the slowest view (Ladder, ~30 ms) is still within it.
Achieved frame rate, A7. These are frames per second, worked out as 1000 ÷ the frame times above. They show the rate this machine could reach with no cap. At the default 24 fps setting the app is capped, so it shows 24 in every view below.
| View | A7, 1280×720 | A7, 1920×1080 |
|---|
| Wide | 75 fps | 39 fps |
| Low | 75 fps | 39 fps |
| Ladder | 65 fps | 33 fps |
| Gallery | 67 fps | 35 fps |
| Toward the panel wall | 91 fps | 47 fps |
Item 35 (added 2026-12-02, Michael: "bolt on, ladder on, turn off smoke and make that option a button on the controls, also shadows on/off").
- The app now starts with MAIN, LADDER and OVERLOAD on and the automatic show off, so the ladder arcs and their bolts run from the start and keep running. Reset (R) returns to this. The Show button still starts the old 41 s show.
- Liberty: I read "bolt on" as OVERLOAD on as well (it doubles the bolts, and item 17 asked for overload by default). The show is off so it can't switch them off at 30 s.
- "Smoke" is the light shafts from the windows, the only haze left after A5. A new Smoke button turns them on or off; on by default (changed the same day at Michael's request).
- A new Shadows button turns the sun's shadow on or off. It is on by default (Michael, same day); off saves about 2.4 ms a frame (see above).
- Checked in the pane: the switches start on, the ladder arcs and bolts appear, both buttons toggle and show their state, Reset keeps ladder and bolts on, and there are no console errors.
On the picture (added 2026-12-02, Michael: "I want to see it on the fucking screen while it is playing"). The achieved fps is now shown in white on a dark box at the bottom left of the picture, just above the copyright line. It updates twice a second and stays visible when the controls are hidden. It is a page overlay, so it is not in recorded movies. Checked in the pane: it shows and there are no console errors. The pane's own number (about 9 fps) is the pane being throttled, not the real rate on your screen.
What the frame time is mostly spent on (not changed; ISSUES Q17).
- The time grows with the number of pixels: in A6's Wide view it was 5.7 ms at 640×360, 14.2 at 1280×720 and 27.0 at 1920×1080.
So the cost is mainly shading each pixel, not the number of objects.
- In A7's Wide view at 1280×720, hiding the 7 point lights (the coil, ladder-arc and 5 hanging-lamp lights) took the frame from 13.3 to 8.3 ms.
These lights have no range limit, so every pixel works out all 7 even when they are dark. That is the largest single cost.
- Turning off the sun's shadow took the frame to 10.9 ms, so the shadow costs about 2.4 ms.
- In A6, the film's 4× smoothing (MSAA) cost about 3 ms of the scene pass, and the bloom and film passes about 1 ms.
Files
As A6, renamed: index.html, CT82.A7.Laboratory_lab.js, _gl.js, _main.js, _rec.js, lib/, tools/ (port 8828), reference/, images/, CT82.A7.Laboratory.md, ISSUES.md, LICENSES.md, research/INDEX.md (each with an .html twin). The info panel no longer mentions the panel. _lab.js and _rec.js are unchanged apart from the name in the header; _main.js only has its name and port changed.
Checked, and not checked (2026-12-02)
Checked:
- All four scripts pass a syntax check.
- In the app's browser pane the page loads with no console errors.
- The camera menu lists 5 views, without Panel.
- The frame-time measurements above.
- I took one picture of the room (Wide view, show at 14 s) and looked at it: brick where the 4 windows were, 3 shafts, the coil dark and the ladders arcing.
Not checked:
- the frame rate on a real, visible screen (the pane was hidden);
- the whole ride in real time, including the stretch where it used to turn to the panel;
- a movie;
- MIDI with a device;
- phones, Firefox and Safari;
- other graphics cards. The before/after numbers are from this one machine.
Pictures (images/)
CT82.A7.Laboratory_room.jpg: the hall, Wide view, show at 14 s.