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

33 lines
3.0 KiB
Plaintext

# The render = play bench's rows (run.sh): each composition played live offscreen with its input, the input it logged
# rendered at the same frames, and the two pictures compared. Columns, tab-separated:
# path the composition, from the repo root
# input - (none), keys:A,B+C,,D (RAEA_INPUT_KEYS: the play's random input thread picks from these sets) or
# script:FILE ({"FRAME": [keys]}, "Pointer:X:Y[:down]" for the pointer; FILE from the repo root)
# seconds the moments compared, space-separated
# explained empty, or why the row may sit under 1.000000 (it still has to be >= 0.999)
# React on the page with 3D in the world, picking and input replay are all here: the games (pong and platformer on
# the page, arena3d's 3D drawn live), bevy-ts' live cases (keys, the pointer, a gamepad, the window and the World's
# components through useQuery), the bridge's Engine reads (engine3d: a cube the World moves, React's marker reading it)
# and pick3d (on* on 3D parts: hover, press, leave); an <R3F>'s own pointer events and <OrbitControls> (r3f live/pointer);
# an app screen's button clicked through the 3D, its own timer on the frame's clock (appscreen: blitz-bevy H12)
sdk/react/bench/games/pong/edit.tsx keys:ArrowUp,ArrowDown,,ArrowUp 0.25 0.75 1.25 1.75
sdk/react/bench/games/platformer/edit.tsx keys:ArrowRight,ArrowRight+ArrowUp,ArrowRight, 0.25 0.75 1.25 1.75
sdk/react/bench/games/arena3d/edit.tsx keys:ArrowRight,ArrowUp,ArrowLeft+ArrowUp,ArrowDown, 0.25 0.75 1.25 1.75
sdk/raea/bench/bevy-ts/cases/live-world.tsx script:sdk/raea/bench/bevy-ts/cases/live-world.json 0.2 0.4
sdk/raea/bench/bevy-ts/cases/live-components.tsx script:sdk/raea/bench/bevy-ts/cases/live-world.json 0.2 0.4
sdk/raea/bench/bevy-ts/cases/live-input.tsx script:sdk/raea/bench/bevy-ts/cases/live-input.json 0.2 0.4
sdk/raea/bench/bevy-ts/cases/live-gamepad.tsx script:sdk/raea/bench/bevy-ts/cases/live-world.json 0.4 0.8
sdk/raea/bench/bevy-ts/cases/live-kinds.tsx script:sdk/raea/bench/bevy-ts/cases/live-world.json 0.3 0.6
sdk/raea/bench/bevy-ts/cases/live-window.tsx script:sdk/raea/bench/bevy-ts/cases/live-world.json 0.2
sdk/raea/bench/bevy-ts/cases/text3d-readback.tsx script:sdk/raea/bench/bevy-ts/cases/live-world.json 0.3 0.6
bench/bridge/engine3d.tsx - 0.3 0.9 1.25
sdk/raea/bench/bevy/pick3d/edit.tsx script:bench/render-play/pick3d.json 0.1 0.2 0.3 0.4 0.6 0.9
sdk/r3f/test/live/pointer.tsx script:sdk/r3f/test/live/pointer.json 0.2 0.4 0.6 0.9
sdk/raea/bench/bevy/appscreen/edit.tsx script:bench/render-play/appscreen.json 0.2 0.4 0.6 0.9
# Compositions with a control in their defaultProps (docs/realtime.feature RT0a): a 2D card, a raster-lit 3D scene and
# the same under a page caption, each played live and rendered (bench/realtime/stage.sh checks a control changed on
# the engine's stage against the render)
bench/realtime/cases/title.tsx - 0.5 1.5 2.5
bench/realtime/cases/raster.tsx - 0.5 1.5 2.5
bench/realtime/cases/caption.tsx - 0.5 1.5 2.5 the 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