Files
shinyobjectz 4c71a31628 realtime-bench: the realtime-editing plan's experiments 1, 2 and 3a, measured (docs/realtime.feature)
bench/realtime/stage.sh shows a composition on the engine's stage in a headless raea window (its own MCP port),
pauses it on frame N, changes one control with stage.props, captures each draw and compares it by SSIM with
`raea render --frame N` of a copy holding the new value (and, for ray tracing, with frame N of a render of 0..N).
bench/realtime/window.sh renders the 5 s draft window the app's host/draft.ts writes (edit segments, scale 0.5),
cold and warm, then once with signing on and looks for a C2PA manifest. Cases: a 2D card, a raster scene, the same
under an HTML caption, a Solari room, a Math.random/Date card, and 60 s and 180 s films of RR0's six shots.
bench/render-play gains rows for the 2D, raster and caption cases, and RAEA_RP_ROWS with absolute paths, so copies
of films outside the repo can be measured.

Results: 2D and raster on the stage equal the render (1.000000; HTML over 3D 0.999999), but only after a seek
following the props: props alone leave a paused stage's old frame up. A 90 s raster film plays at 0.945 against its
render with the play's seed replayed, mostly the paint look's wind (0.993-0.997 with it off). Solari reaches 0.9934
of the film's frame after 32 draws and 0.9942 after 64, never 0.995. The 180 s film's window costs a median 1.14
times the 60 s film's; warm startup to the 3D frame is 2.05-3.71 s, about 1 s of it a second start once the first
frame meets 3D; a window takes 9-20 s. The public raea never signs a draft; the signed build does. 8 of the last 30
timestamped notes on composition films are value-only. So, per the plan: live frames are labelled Preview, the
warm worker and background reopen move into P1, ray-traced previews draw without Solari, and unsigned local drafts
are P1 work.
2026-11-17 19:52:34 -08:00

3.0 KiB

1# The render = play bench's rows (run.sh): each composition played live offscreen with its input, the input it logged
2# rendered at the same frames, and the two pictures compared. Columns, tab-separated:
3# path the composition, from the repo root
4# input - (none), keys:A,B+C,,D (RAEA_INPUT_KEYS: the play's random input thread picks from these sets) or
5# seconds the moments compared, space-separated
6# explained empty, or why the row may sit under 1.000000 (it still has to be >= 0.999)
7# React on the page with 3D in the world, picking and input replay are all here: the games (pong and platformer on
8# the page, arena3d's 3D drawn live), bevy-ts' live cases (keys, the pointer, a gamepad, the window and the World's
9# components through useQuery), the bridge's Engine reads (engine3d: a cube the World moves, React's marker reading it)
10# and pick3d (on* on 3D parts: hover, press, leave); an <R3F>'s own pointer events and <OrbitControls> (r3f live/pointer);
11# an app screen's button clicked through the 3D, its own timer on the frame's clock (appscreen: blitz-bevy H12)
12sdk/react/bench/games/pong/edit.tsxkeys:ArrowUp,ArrowDown,,ArrowUp0.25 0.75 1.25 1.75
13sdk/react/bench/games/platformer/edit.tsxkeys:ArrowRight,ArrowRight+ArrowUp,ArrowRight,0.25 0.75 1.25 1.75
14sdk/react/bench/games/arena3d/edit.tsxkeys:ArrowRight,ArrowUp,ArrowLeft+ArrowUp,ArrowDown,0.25 0.75 1.25 1.75
15sdk/raea/bench/bevy-ts/cases/live-world.tsxscript:sdk/raea/bench/bevy-ts/cases/live-world.json0.2 0.4
16sdk/raea/bench/bevy-ts/cases/live-components.tsxscript:sdk/raea/bench/bevy-ts/cases/live-world.json0.2 0.4
17sdk/raea/bench/bevy-ts/cases/live-input.tsxscript:sdk/raea/bench/bevy-ts/cases/live-input.json0.2 0.4
18sdk/raea/bench/bevy-ts/cases/live-gamepad.tsxscript:sdk/raea/bench/bevy-ts/cases/live-world.json0.4 0.8
19sdk/raea/bench/bevy-ts/cases/live-kinds.tsxscript:sdk/raea/bench/bevy-ts/cases/live-world.json0.3 0.6
20sdk/raea/bench/bevy-ts/cases/live-window.tsxscript:sdk/raea/bench/bevy-ts/cases/live-world.json0.2
21sdk/raea/bench/bevy-ts/cases/text3d-readback.tsxscript:sdk/raea/bench/bevy-ts/cases/live-world.json0.3 0.6
22bench/bridge/engine3d.tsx-0.3 0.9 1.25
23sdk/raea/bench/bevy/pick3d/edit.tsxscript:bench/render-play/pick3d.json0.1 0.2 0.3 0.4 0.6 0.9
24sdk/r3f/test/live/pointer.tsxscript:sdk/r3f/test/live/pointer.json0.2 0.4 0.6 0.9
25sdk/raea/bench/bevy/appscreen/edit.tsxscript:bench/render-play/appscreen.json0.2 0.4 0.6 0.9
26# Compositions with a control in their defaultProps (docs/realtime.feature RT0a): a 2D card, a raster-lit 3D scene and
27# the same under a page caption, each played live and rendered (bench/realtime/stage.sh checks a control changed on
28# the engine's stage against the render)
29bench/realtime/cases/title.tsx-0.5 1.5 2.5
30bench/realtime/cases/raster.tsx-0.5 1.5 2.5
31bench/realtime/cases/caption.tsx-0.5 1.5 2.5the caption's page over 3D is 0.999998 here and 0.999999 on the stage (11-16): the plan's bar for HTML over 3D is 0.9994