Commit Graph
76 Commits
Author SHA1 Message Date
shaneandshinyobjectz 14cdac0687 Render memory: halcyon r109 from killed at 24-25 GB to a 7.8 GB peak (RM0-RM10) (#273)
* RM0: each App's meshes and images, CPU and GPU bytes, after every RAEA_MEM_MARKS mark (raea-sys-memtally); docs/render-memory.feature RM0-RM4

* RM1-RM10: halcyon r109's sequence from killed at 24-25 GB to a 7.8 GB peak (footprint 5.5 GB), the look within run-to-run noise

- RM1: materials' maps and Solari's traced meshes on the GPU only (RAEA_KEEP_CPU_ASSETS=1: the control)
- RM2: a sequence's first 3D engine let go before a second opens
- RM5: JS solids deduplicated by expression, their Manifolds in a two-generation cache (192 MB each); solid.free
- RM6: a map whose picture changes by frame is one part and one material, its picture swapped as frames show it
  (raea-sys-material swapped.rs): the pool's 96 water maps were 96 meshes and 186 textures
- RM7: Manifold shapes welded into indexed meshes (4.65 corners a vertex in halcyon; RAEA_NO_WELD=1: the control);
  a held frame settles to the same picture, boiling 0.30% against 0.38%
- the shape text kept out of the store and the Edit (the engine spawns from the program's rows)
- RM8: a BufferMesh of 64 KB or more kept on disk by its content (buffer:@NAME, raea's caches/buffers):
  shape text 274 MB -> 11.8 MB
- RM9: material maps as BC7 with their mips (intel_tex_2), cached by content in raea's caches/maps, any size
  resampled to whole blocks (RAEA_NO_BC=1: the control): GPU images 733 MB -> 282 MB
- RM10: raea-sys-contact's solids as bytes, a count and u16 surface points: 1.27 GB -> 0.37 GB mid-render
- memtally names the biggest GPU images; RAEA_MEM_MARKS prints the program's text by column and shape call
- tools/memprobe: memseq, heapwho/heapseq (malloc stack logging, holders.py), abenv/abseq/steadyab (A/B on one binary)

docs/render-memory.feature has each step's numbers and gates.

* raea-sys-memtally in tools/layers.toml: a system, as the layers gate asks

* Size: render-memory's eight over-limit crates and files allowed once at today's sizes (Shane 11-29, for 0.1.13): the folders hold other lanes' uncommitted GI/RT work, so they're split once that lands

* Fold render-memory's copies into what they copied (the dupes gate, 297/60 back to 293/57): one two-generation cache, raea_core_shape::Generations, for core/shape's meshes and runtime/calls' built Manifolds; swapped maps load their pictures with maps.rs's panel_picture; raea_io_home::write_whole for a file written whole or not at all (the BC7 maps first); spawn_sig(it, swapped) one function, its callers saying which; the store's spawn given its columns. Size allowances taken down to the folded sizes (solid.rs is back under 500)

* Split the five crates render-memory took past 2000 lines, each where it parts cleanly, so the next lane has room (the size and rask gates; the one-time allowance is gone):
- raea-core-tables (core/tables): a row's per-frame tables, from raea-sys-frame (re-exported there as tables)
- raea-runtime-ecs (runtime/ecs): raea/ecs on Bevy's ECS, from raea-runtime-calls (ecs.rs re-exports it)
- raea-sys-toon (systems/toon): toon surfaces and outlines, from raea-sys-material; its shaders keep the embedded path compositions name (raea_sys_material/toon.wesl)
- raea-render-plugins (engine/render/plugins): RaeaPlugins, from raea-render (engine.rs re-exports it as raea_plugins; the imports only it used are gone)
- raea-runtime-kinds (runtime/kinds): the rows of models, panels, decals, plates, fog, fire, splats, mesh sequences and grass, with placement and name_column, from raea-runtime-scene
maps.rs's inline and panel pictures move to maps/pictures.rs (re-exported, 422 lines left)

* Engine::open_in: a live engine (re)opened in its slot, the one there let go first (RM2 in one place, docs/render-memory.feature). raea-runtime-export's five opens go through it, so a fed render stepped again in the page's box keeps its AOVs as its first engine did; aov_on takes the engine in place. raea-runtime-export is back under its planned 2000 (LT1 and LX6 hold the rest)

* Drop the dependencies render-memory's splits left behind (cargo shear, CI's unused-dependencies gate): raea-render's eleven systems crates went with RaeaPlugins to raea-render-plugins, raea-runtime-calls's bevy with raea/ecs to raea-runtime-ecs, raea-sys-material's raea-core-shape with toon to raea-sys-toon. raea-render's cargo-shear ignore goes too: spawn.rs reads a mesh buffer through raea_core_shape::buffer_json now

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-11-29 16:40:57 -08:00
shinyobjectz c41dd64516 #82: raea built natively for Windows on ARM in CI (windows-arm.yml on windows-11-arm: the release's four binaries, raea --version, a 2D still on WARP); rav1d's assembly off there, where MSVC skips its GNU .S files 2026-11-26 14:01:28 -08:00
shinyobjectz f2351359c8 The repeated-error helper lives once, in io/trace (once.rs): the mixer and raea voice each carried a copy, which put raea-sys-mix over its size limit and added three duplicate groups 2026-11-25 15:32:18 -08:00
shinyobjectz 1926af81a5 Opus reads back off the Mac's own reader (#242): the software backend's decoders are made from Symphonia's registry with a libopus decoder added (io/soft/src/opusdec.rs). Symphonia's MP4 reader found an Opus track and had no decoder for it, so the MP4s raea writes itself on Windows and Linux (H.264 + Opus) read as silent: raea media probe listed no audio and raea media share wrote a copy without its sound 2026-11-25 15:20:20 -08:00
shinyobjectz 1f17872816 Linux and Windows window: links and Copy reach the system (sign-in opened nothing)
raea's window answered app.open and clipboard.write with AppKit on the Mac and with stubs everywhere
else, which answered true. So in the Linux and Windows apps, signing in (Google, Apple, GitHub's
device page), Continue on raea.io and every other link opened nothing, and Copy (the GitHub code
among them) copied nothing, with no error. Reported from Ubuntu 26.

Off the Mac the window now opens links and uses the clipboard through raea-io-os (opener: xdg-open,
or opener's own copy where the system has none, Windows' shell; arboard), which the page host
already links for paste. app.open and clipboard.write answer an error when the system refuses, on
the Mac too (NSWorkspace openURL's answer), so the page can say so. The off-Mac calls move to
other.rs (native.rs at the 500-line limit). tools/linux-check.sh also checks raea-page-window
--features window, the window the Linux app ships.
2026-11-25 00:04:58 -08:00
shinyobjectz 675aa18daf raea-runtime-pid: the process check out of raea-runtime-bundle into a crate of its own (the bundle crate was at its 2000 lines), the manifest reads GIVEN where it called given(), and two lines the dupes check counted as copies written their own way 2026-11-24 23:46:55 -08:00
shinyobjectz 477b14a0ae A VP9 WebM keeps its alpha after ffmpeg -c copy: the muxer writes the tag as ALPHA_MODE, and only alpha_mode was read (#224) 2026-11-24 23:46:55 -08:00
shinyobjectz 3c8fc66bc0 SG4a: the end checks run as the frames come
raea-sys-stage's Staging and raea-sys-contact's Clipping take each frame's parts as it's drawn and keep only
what their verdicts read: each frame's camera, each block of words' and each named part's place on screen, each
frame's cover and subject, the words over parts, and the solids of the parts on screen (a part's let go once
it's been gone 120 frames, an overlap's kept until it's said; only the last frame's pair tests are reused).
raea-runtime-endchecks hands each frame in; a still's frames go in one at a time, their parts made and let go.
Nothing keeps a render's parts now: raea-io-kept is gone. raea-core-scene's ids_of names a frame's parts as
spans_of follows them. Contact's unused slice check and told are gone, its deepest hit shared with the lint.

The film: the same 439 errors, 705 warns and 47 notes in the same order; end checks 0.6 s (22.7 s); a 4.06 GB
resident peak (4.76). The control's end checks add nothing (1.32 GB after its last frame; they rose to 1.52 GB).
Its frames still grow 25% after the first minute (docs/stage-guards.feature).

LX7's plan row follows the clipping check's per-frame code into clip.rs. raea-cli's tests name raea scene's
usage where it moved (raea-app-scene), and an unused alias goes.
2026-11-22 09:41:52 -08:00
shinyobjectz cd03baf109 nobuild: its copied code folded into what it copies (dupes: 293 exact, 57 near)
- raea-sys-rt: one GPU timer for a traced pass (timer.rs), used by raea GI and the far sun; one reader for a pass's
  reach (RAEA_SUN_FAR, RAEA_TRACED_AO); one compute-pipeline queue (cache::pipeline) for GI and its cache.
- raea-io-trace: overrides(), the variables still set over a component's props, said once a run; <VolumetricFog> and
  <SolariLighting> both read through it.
- raea-render-raytrace takes raea-sys-post's Halton places (a facility crate) instead of its own copy; the settings'
  split, taa and one_pass are read where metalfx uses them.
- engine-shaders keeps its declared shaders in a map; fog reads RAEA_FOG_EPI's places in one match; smaller rewrites
  in plugins, look, stats, lod, compose and post.
- tools/dupes.max: exact=293, near=57.
2026-11-22 09:41:52 -08:00
shinyobjectz e9909de88f NB2a: debug views as channels with values; messages that told an author to run cargo
io/trace's stat_value gives a channel a value (pass=depth, lod_debug=time, fog_skip=a,b; a channel chosen bare is
"1"), its variable still the override. Nine debug views (clay, fog_debug, fog_show_fallback, lod_debug, pass,
pass_rays, pass_reach, song_debug, volume_debug), inspect and fog_skip go through it, so a composition chooses them
with stats.on. tools/nobuild.sh stats: pass=depth chosen from TypeScript draws RAEA_PASS=depth's frame (max 0 levels
apart, 240 from the picture), and its static check covers the 35 stat and view variables decided done.

raea song, framing="face" and matchmove say to update raea when raea-perceive is missing (releases ship it) rather than
to build it. export-game says this raea ships without raea-game and how to ask for it; the note on the smaller player
prints only to a checkout's build.
2026-11-22 09:15:58 -08:00
shinyobjectz ee42e31469 NB2a: stat channels and pass timings chosen and read from TypeScript
io/trace's stats.rs: a stat channel is a RAEA_ variable's name without RAEA_ (bake_trace, trace, bevy_passes), on
when the composition chose it (native("stats.on", { channels }) at its top level), when RAEA_STATS lists it, or when
its variable is set, the override. The 51 reads of 24 trace and stat variables go through raea_io_trace::stat. Each
of Bevy's render passes (RenderDiagnosticsPlugin, on by bevy_passes) and PassTimer's go into the run's totals, with
the counters engine/draws and engine/updates; native("stats.read", {}) returns them, and a run that chose a channel
prints the table and keeps stats.json in its trace folder (docs/manual/reference/cli/traces.md).

tools/nobuild.sh stats checks it: every channel decided done reads through stat(); the scene choosing bevy_passes and
trace traces, reads 9 passes and 11 draws back on its last frame, prints the table and keeps stats.json; with nothing
chosen nothing prints; RAEA_TRACE=1 and RAEA_STATS give the same trace lines. 12 frames take 12 updates.

raea-render's lines stay as they were (NB4a's plugin choice folded to one line). native-calls.ts gains the two calls,
and bevy.app.*, which raea registers now that the macOS build links the plugin catalog.
2026-11-22 09:15:58 -08:00
shinyobjectz 4202a87850 SG4a: a live render's parts kept on disk, the MP4 writer's samples on disk, the master's true peak and loudness a block at a time, shapes in 16 MB generations
The film with every check on: 2.43 GB at frame 13,000 (3.7), 2.73 GB after its sound and video, a 4.8 GB peak (6.0),
the same 439 errors, 705 warns and 47 notes. The control (one scene, 13,200 frames): 1.27 GB at frame 13,000 against
1.07 in its first minute (+19%, was +44%), a 1.5 GB peak (2.85). raea-io-kept is new: each frame's parts go to a temp
file, each props map, string and material once by its content, a part's own place left out (a camera's kept).
2026-11-22 07:29:58 -08:00
shinyobjectz bc42f11ff2 SG4a: a long render's encoded video and its sound are kept on disk, not in memory
VideoToolbox, openh264 and rav1e each kept every encoded sample in memory until the
end, and the mux copied them all again: a 7-minute film's 1 GB. raea-io-codec's
Samples writes each to an unlinked temp file as it comes out (delete-on-close on
Windows) and remux::annexb_mux_from reads them back one at a time for the mux. The
offline bounce fills each channel as the frames come, sized once from the frame count,
instead of an interleaved copy of the whole sound split in two at the end.
2026-11-22 03:35:01 -08:00
shinyobjectz 71ee5ab583 raea gen: made quotes a length-priced edit with its real video; fal puts a start frame in image_url
made: a model billed per second of its input (seedance_2_5_edit, catalog inputSecondsPricing) was quoted with a
stand-in URL, and made answered "couldn't read the source video: unsupported media container". The run now uploads
that input once and quotes and sends with the same media id; the plan says the price per second instead of the error.

fal: body() took the first non-list field containing "image_url", which in Seedance 2.5's schema is end_image_url,
so the start frame went in as the last frame and fal refused the job (422). The plain image_url / image_urls field
is picked first, and an end_image input goes to the end-frame field. Test: a_start_frame_goes_to_image_url_not_the_end_frame.

Found making the raea cloud hero film (11-18).
2026-11-21 17:27:49 -08:00
shane 328aba8849 Merge pull request #211 from shinyobjectz/ask
AK0-AK4: raea ask, questions about a piece's picture and sound, paid from the person's plan
2026-11-20 16:38:58 -08:00
shinyobjectz 6a4ff18a0b ask: six snippets reshaped that the dupes check read as copies
L1's dupes step counted 300 exact groups against 294 allowed, and each of the six new groups was ask code beside an
existing twin. Recorded answers are read in one step, the cache folder names its PathBuf, the media prune reads each
entry's metadata in one chain, a temp clip is removed with .ok(), the client encodes base64 with the engine itself,
and a question id is checked over its bytes.
2026-11-20 15:25:33 -08:00
shinyobjectz 68433ab526 AK3: raea ask: questions about a piece's picture and sound, prepared, asked in parallel and kept
raea-app-ask. prepare.rs reads what raea knows of the piece before it spends: what the file holds, the nearest brief.ts
(through raea spec) and a words file. A question that doesn't apply is dropped or swapped with why (a silent piece
asks sound-silent in place of sound); not knowing whether anyone speaks, both variants go in one call with the voice
question, and the answer sets the other aside. runner.rs plans a batch into calls (by file, window, files beside it
and what the questions look at, 64 a call), cuts each clip once, calls in parallel (--jobs), streams the answers, and
when the pool is spent partway keeps what came and reports the rest as waiting. record.rs keeps every call and
answer under ~/.raea/ask with the clips it cut, by hash, at most 2 GB. verbs.rs is raea ask: own words (--choose,
--grade, --rate, --flag), the standard sets (--set, --std, ask list), windows (--from, --to, --at), --with, --batch
(a JSON list or lines, - for stdin), --dry, --json and --gate for pipelines.

sdk/raea's raea/ask gives scripts ask and askMany over raea ask --batch --json. The clef client's failures are
typed so a spent pool waits rather than fails; decide.changed needs files beside it. The manual's CLI and SDK pages
are written with it; AK1, AK1b, AK2 and AK3 are done in docs/ask.feature.
2026-11-20 15:07:41 -08:00
shinyobjectz 70cb98d3e8 AK1b: raea-io-clef: one clef client, routed to the person's plan first; raea judge moved onto it
One call: the state, the questions by id, and stills (JPEG), videos (MP4) and sounds (MP3) cut with raea's FFmpeg to
clef's limits (480 px H.264 at a small bitrate, mono 16 kHz MP3, JPEG at most 1,600 px; ffprobe says first what a file
holds). It goes the first way that answers: the raea app's host (/host/ask, which adds its sign-in), an agent key
(RAEA_AGENT_KEY with RAEA_API, for pipelines and servers), the person's own Cloudflare account; with none it says how
to get one. No plan or no ask scope hands on to the next way; a spent pool stops unless the person has their own keys.
Unchanged questions on unchanged media come from a cache by request hash; RAEA_CLEF_REPLAY gives recorded answers to
tests.

raea judge asks through it (Question::from_wire reads its rubric's clef-native questions), so apps/judge's own
clef.rs is gone and the judge pays from the plan when the app is signed in. docs/settings.md lists the new settings.
2026-11-20 14:44:32 -08:00
shane 1b7450fb4b Merge pull request #206 from shinyobjectz/win-sizes-export-game
Windows: sizes without du, export-game says it makes Mac games; TokenSynth's line in 0.1.8's notes
2026-11-19 21:34:26 -05:00
shinyobjectz 25280d1eba Windows: sizes without du, and export-game says it makes Mac games
raea setup-audio (and raea motion's model folders) said "(?)" for every size on Windows: raea_io_home::disk_use ran du, which Windows has no copy of. Without du it now adds up the files' sizes (through links when asked, 64 folders deep at most) and writes them in du -h's units. a_folder_is_sized_without_du; run on a Windows 11 PC with no du, and on macOS.

raea export-game on Windows or Linux said "no player at ...\\raea-game (build it: cargo build --profile game ...)": its targets are a Mac's (signed with codesign) and those releases carry no player, so the advice led nowhere. Off a Mac it now says it makes Mac games and that Windows and Linux games aren't there yet.
2026-11-19 17:52:03 -08:00
shinyobjectz b60d901473 Git on a PC without it: found or fetched once, as the app's host does (#169)
raea workspace, project and controller failed with "git: program not found" on a PC whose only Git was the app's.
raea_io_assets::git(): $RAEA_GIT, the PATH's, then on Windows the app's (InstallLocation\git), Git for Windows off the
PATH, and raea's own in the tools cache, fetched once (dugite-native, the build the app's host uses, sha256 checked).
Elsewhere it says how to install git. The default root is joined a folder at a time. NOTICE names the fetch, and
FormatJS and CLDR for the Intl commit before this.
2026-11-19 14:30:31 -08:00
shinyobjectz 3a08d33f37 openh264 keeps every block of a slowly changing dark ground at --quality master (#169)
Its background detection took a dim glow drifting over black for still and copied old blocks forward: 6-8% of dark
blocks stepped in every sampled frame, at any bitrate or quantiser. Off, 0.1%, as a lossless encode of the same frames.
a_dark_glow_drifting_keeps_every_block_at_master asks under 3% (5.3% before, 1.6% now).
2026-11-19 14:30:17 -08:00
shinyobjectz c3e7206581 DX12 with DXC: hanabi's utils shader named so DXC can read it; an export refuses a codec before rendering (#196)
wgpu hands DXC a shader module's label as its source's file name, and on Windows LLVM reads "hanabi:shader:utils"
as a root and a file, so DXC said "error reading 'hanabi:shader:utils'" and every Bevy app failed: on a PC where
dxcompiler.dll is on the PATH (wgpu loads it when it can, else FXC), rc8 rendered no 3D at all on DX12 (exit 101 on
an RTX 4070 with WGPU_BACKEND=dx12 and DXC 1.9.2609; the same render passed with FXC). raea export xml's passes were
where the reporter saw it, on a PC whose Intel iGPU puts raea on DX12. Bevy names its modules nothing; hanabi's
utils module and its contract tests' were the only labels with a colon, now underscores.

And an export refuses an alpha codec this machine can't write (ProRes or HEVC off a Mac) when it starts, not after the
reference render: Codec::chosen, which layers, capcut and render_movie share.
2026-11-19 11:37:55 -08:00
shinyobjectz 913931ad9a Windows: bin\ carries what raea needs, so a PC with nothing installed and no downloads works
tools/release/win-bundle.sh puts beside raea.exe, each with its licence: Microsoft's Visual C++ runtime
(vcruntime140, vcruntime140_1, msvcp140, msvcp140_1) from the runner's Visual Studio, app-local as Microsoft
documents; raea's LGPL FFmpeg 9.0.2 (tools-ffmpeg-9.0.2-lgpl, libvpx's licence and patent grant beside it); and
uv. Before, raea.exe didn't start without the VC++ Redistributable installed, and a PC that blocks GitHub's downloads
couldn't read a phone's video or set up a local model. Its pins are setup.rs's, so what ships and what raea fetches
where it isn't are the same build: setup.rs now fetches our LGPL zip (sha256 d3a3d8cd...) in place of GyanD's GPL
essentials. release.yml runs it, and release-check.sh refuses a Windows zip whose bin\ lacks a file
win-bundle.files lists, whose FFmpeg isn't the LGPL build, or that has no libvpx-vp9 or h264_mf. NOTICE, the README
and 0.1.8's what's new say so.

Checked on the Windows box with the published zip: LGPL, the libvpx VP8/VP9 decoders and h264_mf listed; a 2 s
H.264 clip with AAC cut by h264_mf at notes check's arguments; an alpha VP9 WebM decoded with its alpha (253,0,0,127);
the filters raea runs (ebur128, freezedetect, signalstats, scale, concat, showwavespic, ...) present.
2026-11-19 10:05:03 -08:00
shinyobjectz e8e3500466 Clip cuts pick the H.264 encoder this machine's ffmpeg has (raea_io_ffmpeg::h264)
raea notes check's sign-off clip and a postmortem's clip were cut with libx264, which only a GPL ffmpeg has:
Homebrew's and Linux distributions' do, and GyanD's Windows build did, but the LGPL build raea now ships on
Windows doesn't. h264() asks ffmpeg -encoders once and takes libx264, else Windows' own Media Foundation encoder
(h264_mf, in raea's LGPL build), else VideoToolbox's, at 8 Mb/s for the system ones; None without one (notes check
says so; a postmortem plays the whole piece, as it did when a cut failed).
2026-11-19 09:51:02 -08:00
shinyobjectz 2238d3d66b Setup: a fetch stopped partway no longer leaves its download behind
uv's and FFmpeg's fetches download into NAME.part<pid> and move it in when it's whole. A fetch stopped partway (a Ctrl+C, a closed window, a killed process) left its part folder, and every later fetch made a new one: on a Windows test box three were left beside FFmpeg, one holding the 114 MB zip.

Both fetches now end through one settle(): the part moved in when it's whole and nothing got there first, the part removed, and once the tool is in place every NAME.part* beside it swept. A part another process is still writing stays on Windows (its open file can't be removed); elsewhere that fetch fails, finds the tool in place, and counts as done, as a failed fetch that finds the tool already does.

settle_sweeps_stopped_fetches: two stopped FFmpeg parts and this run's are swept while uv's is kept, a failed fetch that finds the tool is done, and one that doesn't says why.
2026-11-18 19:09:09 -08:00
shinyobjectz 4dfe231d32 Windows reads a phone's or a camera's video: raea fetches FFmpeg the first time one needs it
On Windows raea's own decoders read H.264 without B-frames (openh264) and AV1, not what phones and cameras write:
H.264 with B-frames, HEVC, VP9. With no FFmpeg installed (as on nearly every Windows PC), raea media probe, raea
check and a render's <Video> refused such a clip ("no picture or sound raea can read"). Found testing 0.1.8-rc6's
raea.exe on Windows with orbit.mp4 (H.264 High, B-frames).

- raea_io_assets::ffmpeg_tool: ffmpeg or ffprobe from the PATH, else raea's own in $RAEA_TOOLS_CACHE/ffmpeg/bin.
  On Windows raea's own is fetched there once: GyanD's essentials build 9.0.2 (the one winget's
  Gyan.FFmpeg.Essentials installs) from its GitHub release, 114 MB, checked against GitHub's SHA-256 digest
  for it, unpacked by Windows' tar (ffmpeg.exe, ffprobe.exe and the LICENSE, ~210 MB). Nothing is bundled.
  Off Windows the error names the package manager's command.
- The fetch shares uv's code (fetch_archive, from fetch_uv), which now resumes across curl's tries
  (-C - --retry-all-errors, as #189 does for the models).
- The ffmpeg backend runs that binary everywhere. Only opening a file named as a video fetches; sound,
  encoding and asking what FFmpeg can do never do, so a silent clip tried on every backend, or an mp3, never
  downloads 114 MB.
- raea-app-media opens a video through every backend in order (raea_io_media::preferred), as renders already
  did, instead of the platform's alone: media probe, the change and picture commands, and raea check's
  native reader. probe's refusal now says what each backend said.

Checked on the Mac with no FFmpeg on PATH and the portable backend first: B-frame H.264 and HEVC probe
through VideoToolbox (they were refused before), and VP9 is refused with each backend's reason, ending in the
install line; VP9 probes once FFmpeg is on PATH. The zip's layout and extraction were checked with bsdtar.
The Windows fetch itself is proved on the release's raea.exe on Windows. Tests: raea-io-assets, raea-io-ffmpeg,
raea-app-media and raea-app-check-read (parity against FFmpeg) pass.
2026-11-18 18:03:37 -08:00
shinyobjectz 4d44519fc1 Local models install and run on a Mac, Windows or Linux with nothing installed first
Each local model's setup is now tools/<model>/setup.py (standard library only, on tools/local_setup.py), run by uv
on any OS as raea runs it: uv on the PATH, else raea's own uv 0.12.24 fetched once into ~/.cache/raea-tools/uv (where
tools/ensure.sh puts it) and checked against its SHA-256. The setup.sh beside each is a wrapper for a Mac or Linux.
Until now each setup was a sh script needing uv already installed (brew install uv), so Windows had no way to
install any local model.

- SAO: Core ML on a Mac, ONNX Runtime elsewhere (CUDA where nvidia-smi finds a GPU; RAEA_SAO_CUDA=0|1); its WAV is
  written by Python's wave module, not an installed ffmpeg (same samples)
- matchmove, splat: footage read through PyAV, whose wheels carry FFmpeg's libraries (no ffmpeg/ffprobe needed);
  splat fetches Brush v0.3.0's release build for macOS arm64, Linux x86_64 or Windows x86_64, each SHA-256 checked
- goo: Taichi on Metal on a Mac, else its best GPU (CUDA, Vulkan) or the CPU; the backend is reported as run
- TokenSynth: its code as GitHub's archive at a pinned commit (no git); coremltools only on a Mac
- the engine runs .venv\Scripts\python.exe on Windows (venv_python), Brush's brush_app.exe
- tools/release.sh ships tools/local_setup.py
2026-11-18 16:24:45 -08:00
shane dc9dacf41e Merge pull request #186 from shinyobjectz/shared-imports
@shared/ imports render: both bundlers resolve the workspace's shared/ (LY2)
2026-11-18 18:35:35 -05:00
shinyobjectz ac7c37f256 @shared/ imports render: both bundlers resolve the workspace's shared/ (LY2)
raea's skill tells agents to import shared code as @shared/components/NAME, and the project's tsconfig maps it, so
tsc passes; but raea render's bundler took @shared/... for a package and the composition threw "Can't find variable:
_shared_components_badge" before its first frame (0.1.7, reported by an agent on macOS). A relative import of the same
file worked.

raea_io_home::shared finds the workspace's shared/ as the engine's loader does (the folder holding .raea/workspace;
its root for a workspace from before shared/) and the file an @shared/ name means. runtime/bundle's copy of an edit
treats @shared/ like any import from outside its folder: copied to ext/shared/ with what it imports, the import
pointed at the copy (a project that is its own repo too). engine/bundle's script resolution (raea run, specs) resolves
it from the importer. A name shared/ doesn't have is refused naming its importer, not left to the bundler.

Checked: raea render of a composition importing @shared/components/badge draws (it threw before); raea run resolves
@shared/; a missing name is refused with the file it looked for. raea-io-home, raea-runtime-bundle and raea-bundle
tests pass (new: an_import_of_shared_finds_the_workspace_s_file_from_any_depth,
outside_copies_the_workspace_s_shared_code).
2026-11-18 14:59:37 -08:00
shinyobjectzandClaude Opus 5.5 f40e458776 Land Zach's layers stack (#167, #170, #171, #172) on main for 0.1.8
raea export layers and layers.json, CapCut drafts written from layers.json with a captions track, raea export xml
(FCP7 XML for Premiere Pro and DaVinci Resolve), footage that moves, is cut or fades keyed in every export, and the
delivery and words guides teaching them (raea-skills #99, merged onto raea-skills main).

Conflict: engine/cli/src/cli.rs's help, where main added raea wear and raea setup motion beside Zach's raea export
layers and raea export xml; both kept. The skills pin is raea-skills main with #99 merged (f37e5e3).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 09:33:11 -08:00
shinyobjectz 6e4f947fc9 codec: the master's make-up gain converges on heavily limited sound
Limiting takes loudness off, and master_gained made it up a dB for a dB in three
passes. On a gambit range demo (rifle cracks over a quiet bed, the limiter eating
most of the gain) that stopped 1.8 LU short: -15.8 LUFS against -14. Each pass now
steps by what the last one's gain bought (a secant, slope clamped 0.05..1, step
clamped 12 dB), up to 8 passes or within 0.1 LU: the demo's sound now masters to
-14.11 (13 dB-for-dB passes reached -14.03). Test: a crack-over-wind signal the old
loop leaves 0.25 short.

Seen, not fixed: limited ~10 dB, noise-like transients come out up to a dB over the
ceiling between samples before the encoder (sample peaks hold); master_for's
post-AAC pass is what takes that off.
2026-11-17 20:42:47 -08:00
shinyobjectz 04adefa570 L1 for every branch landing at once: crates and files back under their limits, copies folded, the Solari fix marked
- raea-sys-shots: raea-sys-frame's cuts between cameras as a crate of their own (frame re-exports it as shots), so
  frame's new Cut fits under the crate limit; runtime/scene's paint_cut joins cam_keyed's prefixes.
- sdk/video controls.ts: a composition's controls out of registry.tsx (under 500 lines), each kind documented.
- raea-runtime-segments in tools/layers.toml; vendor/bevy_solari's compaction-queue fix marked raea:.
- sdk/cloud: a farm job's GPU kind is `card` (a prop names what it picks, not the processor); the farm's query is
  unchanged.
- Copies folded: io-media's backend() is backend_unsigned wrapped by the signer; paint's cut colours read by one
  closure; foliage's one smoothstep, a triangle's bounds in one pass, a cell's pixels as one range; segments' video
  track found once in its tests and its shortest segment set where it's used; the Solari switch through
  raea_io_home::env_on; kimodo's package record a path like its others; a few one-liners written directly.
  tools/dupes.max names the six left, which match by shape only (trait forwards, foliage's own FNV and stream).
2026-11-17 19:52:34 -08:00
shinyobjectz e50c22064f RR3: in progress. A whole video made as shot segments and joined by stream copy, behind RAEA_SEGMENTS=1 until RR3's gates are measured. raea-runtime-segments: a new encoder run (unsigned) at each cut once the segment before holds a second of frames (split.rs), the whole wrapped by the signer so the export is one file with one watermark id, signed once after the join (encode.rs); the join reads the segments' MP4s with re_mp4 (H.264/HEVC to Annex B with their parameter sets ahead of each keyframe, AV1 OBUs as they are) and writes one with muxide, the sound laid under once from the backend's new Backend::sound (AAC on Apple, Opus on soft and av1) (join.rs). Cuts come from each frame of the fed render (an outermost Sequence's data-raea-start, raea-runtime-page shot_starts; the engine's camera cut, raea_sys_frame::shots::Cut set in pre_step) and the timeline's Shots up front. io-codec gains SoundTrack, remux::aac_track and hvcc_params; io-media backend_unsigned and a public sign::wrap. Benches: film.tsx's cut and cut-long compositions, pages.tsx, rr3.sh (segmented against one run: SSIM >= 0.999 and VMAF >= 99 per frame; join under 1 s on 3,600 frames). Tests: two segments joined are one video with one sound and the segments' own bytes; the encoder splits at cuts but not after a short shot 2026-11-17 19:52:34 -08:00
shinyobjectz c3ba126ccf raea gen: image.edit's mask reaches a fal model's mask field
A step's media all went into the endpoint's image field, so a mask went into
image_urls beside the picture and a fill model read none. A media input named
mask now goes to the schema's mask field (mask_url when there is no schema).
Test: fal::tests::a_mask_goes_to_the_mask_field.
2026-11-17 19:52:34 -08:00
shinyobjectz 3826a68bfc raea gen: a fal step sends the settings its endpoint's schema names (resolution, aspect_ratio)
fal::body sent prompt, seed, negative and x_* only, so a 4K edit on fal-ai/nano-banana-pro/edit came back 1024 px
(chars/gb-organ's profile views, 11-17) and its face fit failed. Any other setting is sent when the endpoint's
OpenAPI input names it; one it doesn't name is still dropped (made.app's names that fal has no field for). Test:
fal::tests::settings_the_schema_names_go_through.
2026-11-17 19:52:34 -08:00
shinyobjectz e251524164 raea gen: a loaded file changed in place is a new input
A media.load step was keyed by its path alone, so a picture made again at
the same path kept every step made from it cached: a face's front remade
in place would keep its old bald edits. The run now keys a load of a local
file by its contents too (Flow::keys_in with the run's base dir); keys()
without a base is unchanged. Test: a_loaded_file_changed_in_place_is_a_new_input.
2026-11-17 19:52:34 -08:00
shinyobjectz c53a2cfd47 TokenSynth on an NVIDIA GPU (docs/cloud-render.feature CR25): run.py --device cpu|cuda (the DAC decoder and the model on the device, sampling still on the CPU from the seed), raea's asset store passes it from RAEA_TOKENSYNTH_DEVICE (the device is in the cache key, so a GPU's note is its own sample), and an install from before --device says to run setup.sh again. sdk/cloud/deploy/modal/tokensynth.py installs it into raea-models (built at its own path on the container's disk: uv's temporary files fail on the volume, and the venv names its path) and measures it. On a Modal A10, 2.5 s a note with the model loaded against 50.6 s on 4 CPU cores; a process a note, 15.5 s on a T4 against 103 s. CLAP audio embeddings: 4 of 6 GPU notes are as close to the CPU's as two CPU seeds are. 2026-11-17 19:52:34 -08:00
shinyobjectz c37616685c raea-app-motion: raea motion and raea setup motion leave raea-app-tools, and kimodo's torch path passes L1
raea-app-tools was 2050 lines, over the crate limit, with the motion verbs: they move whole to apps/motion
(raea-app-motion), and raea-app-tools re-exports it as motion, so the CLI's tools::motion calls stand. A path handed
to PyTorch goes through dunce::canonicalize (std's gives \\?\C:\ on Windows), and the run's temp folder is
raea-kimodo-PID (the retired name gone). The environment's venv and checkpoint folders are fields made with the
Torch, a constraint row's numbers are read without a closure, and what a folder takes on disk is io-home's
disk_use for raea setup motion and raea sounds alike: tools/dupes.sh's new groups from kimodo, folded.
2026-11-17 19:52:34 -08:00
Zachary GuglinandClaude Opus 5.5 3acbaab880 layers LA4c, LA4d, CC2f: footage that moves, is cut or fades is keyed in every export, each editor placing it as raea drew it
The manifest says what of a video a box it's in leaves showing (clip) and its object-position; layers.json keeps
each footage clip's box, clip, object-position and opacity at the frames they change (keys). One reading of a
picture (plan::picture: object-fit, object-position, cut only where its box or a box it's in cuts it inside the
frame) places it in every export:
- the FCP7 XML keyframes Basic Motion, crop and opacity, written per editor (NAME.premiere.xml, NAME.resolve.xml):
  Premiere's crop in Basic Motion, Resolve's as FCP7's Crop mirrored for a phone's take stored turned; Scale and
  Center each in that editor's clip at Scale 100 (Premiere: the media as described, a phone's take as stored;
  Resolve: the media fitted to the timeline), read from what each did with what it was given
- the CapCut draft keys position, scale and opacity (common_keyframes); its crop holds as the first frame shows it,
  and a crop that changes over the clip (a split screen's seam) is said: CapCut can't show it
- keys a straight line between gives to 0.15 px are left out; a clip at another speed is placed at its own, and said

Also: a layer's ProRes movie that opens on an opaque frame keeps one sample description with alpha (VideoToolbox
otherwise starts a second, which Premiere won't import and Resolve shows opaque); a sound's clip ends where its file
does; the stack's duplicate code folded (tools/dupes.max 59 -> 58 near).

Checked on 11-17: Premiere Pro 26.2.2 and DaVinci Resolve 21.2.0 on the Telluride test (iPhone takes, a keyframed
split close) and the positioning test (horizontal and phone takes, 1080 and 4K compositions); CapCut 9.5 on Telluride;
LA3a composites the fixtures and the positioning test back as the render at 33-49 dB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-17 15:04:22 -08:00
shinyobjectz 57f3ef8db3 Windows: canonicalize goes through dunce and the home folder through user_home (all but five crates)
canonicalize() through std gives \\?\C:\... on Windows: a path Git for Windows can neither read nor lock, Rolldown can't resolve, and which shares no root with the C:\... git and everything else print. It broke a new workspace's git config (fixed in apps/workspace earlier today). Here the calls in the apps (CapCut, check, direction, engines, fingerprint, game, interchange, judge, solid, sound, targets, tools), the bundler, the CLI, the modules loader, the native shim's realpath, the page's motion, io (assets, gen, home, shell), runtime/bundle/lib, js, track and world, the systems (fingerprint-use, footage, index, ml, page-net), the bridge bench's examples and the sdk/ui test tools use dunce::canonicalize, which gives C:\... wherever a path can be said so and is std's own call on the Mac and Linux.

Reads of the home folder took HOME alone, which Windows doesn't set for an app opened from the Start menu or Explorer, so the taste file, the settings file, the inbox, the npm store, the caches (sounds, splats, goo, ingest, speech, Core ML, the portable perceive models), the node shim's os.homedir() and CapCut's drafts were looked for under whatever folder raea ran in. raea_io_home::user_home() reads HOME, then USERPROFILE (Git for Windows' order; an empty one counts as unset), and models(), caches(), logs(), env_path() and offline() use it, as do the places that had their own fallback.

The caches that had their own copy of "this variable, else this folder under home" (splats, goo, ingest, the npm store, Core ML's models) now call raea_io_home::env_path and models(), and raea_io_home::real canonicalizes a path or keeps it as given, so tools/dupes.max comes down to 289 exact and 58 near. tools/skills.sh reads a variable from env_path("RAEA_...", ".raea/...") as it did from env::var, so files.md keeps RAEA_NPM_HOME on ~/.raea/npm (every generated reference is unchanged).

Five crates hold other sessions' uncommitted edits (engine/page/stage, engine/render, runtime/bundle, runtime/export, runtime/live): their few calls, and tools/windows-paths.sh, the check that keeps both at zero, land once those are committed.

Checked: cargo check --all-targets of every crate changed, and of sdk/ui/conformance and sdk/ui/parity. On a Windows 11 PC and on macOS the unit tests of raea-io-home (user_home's order and an empty HOME, now in caches_logs_and_the_home_folder_follow_the_platform), raea-app-check, raea-app-workspace, raea-app-registry and raea-core-facts pass (5, 27, 10, 7, 17).
2026-11-17 10:38:33 -08:00
shinyobjectz 1680860ff4 raea-io-gen-fit: fit.rs moved out of raea-io-gen into its own crate, re-exported as raea_io_gen::fit so every path stays. raea-io-gen was at its 2000-line crate limit on main, and the picture fallback (Keys) put it at 2095; it is now 1930. route.rs's Keys comment no longer names raea's env file by its literal path, which made skills' files.md stale. Checked: cargo test -p raea-io-gen -p raea-io-gen-fit --lib, 26 and 1 (the same 27 as before). 2026-11-14 15:38:57 -08:00
shinyobjectz 74ce0ff737 raea gen: a picture step on a host with no made.app key goes to fal, then OpenRouter
The app's Images and video now offers made.app, OpenRouter and fal (Shane 11-14: "maybe add openrouter and fal as other image options"). made.app is a key only: its OAuth tokens open its MCP server, never the API raea gen calls. So a person who signs in to OpenRouter or adds a fal key there, and has no made.app key, needs raea gen to use it: before, every picture step that named no model went to made and failed asking for MADE_API_KEY.

route.rs: the policy knows which picture services this host has a key for (Keys::here: MADE_API_KEY, FAL_KEY, OPENROUTER_API_KEY, from the environment and ~/.raea/env; cli.rs fills it in). With no made.app key, image.generate goes to fal's fal-ai/nano-banana-2 (made's own default for pictures) and image.edit to its /edit endpoint, else to OpenRouter's google/gemini-3.1-flash-image, each with a note saying why. A made.app key here, a step that names its model, and every other op route as before; with none of the three keys a picture step still goes to made, which asks for its key. The fal and OpenRouter backends already made pictures (hosted.rs).

Tests: tests_keys.rs (made first when its key is here, fal then OpenRouter without it, an edit to fal's edit endpoint, video and named models unchanged); cargo test -p raea-io-gen --lib 27 of 27.
2026-11-14 15:34:27 -08:00
shinyobjectz d7a755c08b Video plays smoothly at 4K and at 60 fps: frames decoded ahead and shown when due, a faster BGRA conversion, halvings from the decoder's thread, no relayout for a same-size frame 2026-11-13 11:43:31 -08:00
shinyobjectz e165d0c4a8 Video with alpha (#113): a VP9 WebM's transparency and a ProRes 4444's are drawn, not refused or made opaque
A <Video> on the page was opened by the platform's decoder alone (Apple's on a Mac), which reads no WebM: a VP9 WebM
with alpha was refused, "no video track". The page now asks the backends in raea-io-media's order (RAEA_MEDIA's, the
platform's, the portable one, the ffmpeg CLI), as the other readers of video do, and says what each answered when
none opens it.

The ffmpeg CLI decoder read nothing under FFmpeg 8 and later, which took out -vsync: raea-io-ffmpeg's passthrough()
gives -fps_mode from 5.1 on (apps/check's flash test had that rule; it calls this one now). A VP8 or VP9 stream tagged
alpha_mode=1 is decoded with libvpx, named before the input (FFmpeg's own VP9 decoder drops the alpha WebM keeps beside
the picture), where this FFmpeg has it. ffmpeg's stderr is kept for a read that fails and out of the run's output.

Apple's decoder made every pixel's alpha 255. A track whose format description says it carries alpha (ProRes 4444 at
depth 32, HEVC with alpha) keeps VideoToolbox's: straight, as checked on a ramp from 0 to 255 over blue (63/192,
127/128, 190/65 at a quarter, half and three quarters).

Checked on the issue's files, a red circle on nothing over a blue page: WebM and ProRes give a blue corner and a red
centre (were refused and red); a 30-frame MP4 from the WebM holds that on every frame read; a plain H.264 is unchanged.
Test: raea-io-ffmpeg's vp9_webm_keeps_its_alpha (skips without ffmpeg and libvpx), now in CI's list.
2026-11-12 12:14:24 -08:00
Mattias HjemgaardandClaude Opus 5.5 ab0babcce7 log: the 3D camera is the shadow LOD origin, and bevy_time's warning is filtered (#104, #89 item 7)
* fix(log): a 3D camera that is the shadow LOD origin, and bevy_time's warning filtered

Every 3D run with a point or spot light warned that no entity has
ShadowLodOrigin (the scene camera draws into an image, so Bevy picked one
arbitrarily): the scene camera now carries the marker. bevy_time's "did not
receive the time from the render world" (raea drives Time by frame, with the
render world in step) is filtered out of stderr, in Bevy's log filter and in
raea_io_trace's logger; the event log keeps every record.

Measured on main 5b2c7731: a 3D still with a point light printed the
ShadowLodOrigin warning, now nothing; a 2D still printed bevy_time's line,
now not. The 54 dropped bevy_ecs CommandQueue lines on a 2D still are left as
they are: their source still needs finding.

Part of #89

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* check: keep raea-render under the size cap

The two new comments said in five lines what fits in three; raea-render
was 2 lines over tools/size.sh's 2,000-line crate limit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-12 13:43:33 -05:00
shinyobjectz 07cd85e663 CC1, CC2: raea render -o OUT.mov --alpha writes a transparent movie natively, and raea export capcut EDIT.tsx writes the composition as a CapCut draft ready in its timeline (docs/capcut.feature)
raea-io-alpha encodes --alpha PNG frames (straight alpha) as a QuickTime movie: ProRes 4444 or HEVC with alpha through AVAssetWriter on the Mac, and QuickTime Animation (32-bit ARGB run-length, FFmpeg's qtrle layout) or PNG frames on every platform. `--alpha-codec prores|hevc|rle|png` picks one; prores is the Mac's default, rle elsewhere. CC1a, on a 3 s 1080x1920 graphic: 12.3 MB, 0.34 MB, 0.84 MB and 7.4 MB; rle and png decode identical to the PNGs, prores and hevc alpha within 61 dB, and a frame that draws nothing decodes fully transparent in all four.

raea-io-capcut writes CapCut 8.5.0's draft as CapCut writes it (an empty project and one with a clip placed by hand give its skeleton and a video segment's companion materials): one material per segment, times on the frame grid, media copied into its assets/, version markers from the newest draft CapCut made, and the entry in root_meta_info.json (backed up first, refused while CapCut runs). raea-app-capcut renders the composition three times: as it is with --manifest (footage runs, sound clips); with its footage and the backgrounds holding it hidden (RAEA_HIDE_MEDIA=1, the overlay); and with only those backgrounds (RAEA_HIDE_MEDIA=under, kept unless black). Footage becomes clips of the original files at their trims and rates, placed by object-fit (cover, contain, a cover crop), keeping their own sound at the composition's gain; sounds become audio clips with gains and fades; the overlay becomes clips cut where it draws. The manifest gains each video's object-fit and each sound's rate and fades, and the export cache is skipped under RAEA_HIDE_*. Checked on two fixtures: the draft's layers composited in ffmpeg match raea's render (31-33 dB against its H.264). Not yet checked: the draft opened in CapCut itself (CC3a). The CLI reference gains export (in Make) and --alpha-codec.
2026-11-11 06:43:39 -08:00
shinyobjectzandSirSicard 7f438bf130 H.264 above 4096x2304 on the Mac finishes instead of hanging (#83). VideoToolbox gives such a session its software H.264 encoder (VTCompressionSessionCreate still succeeds), which emits nothing until it holds 13 frames; raea keeps 3 in flight and waited on the oldest with no timeout, so the render stopped at frame 0 and the watchdog blamed the GPU. Now a full queue with nothing out for 300 ms has its frames completed (what RAEA_VT_FLUSH does), unlocked since the output callback takes the lock, with one note on stderr naming the size and --10bit, and every full queue after that completes them at once; nothing out for 60 s fails the render with that reason, and finish() waits the same 60 s. A dropped VtEncoder invalidates its session, so a callback can't reach freed state after such an error. The reporter's 4608x2592 60 fps page: main stalls at frame 0 (killed after 20 s, no file); now 60 of 60 frames at 31.0 ms a frame. 640x360 2.2 ms a frame (main 2.4), 1080p 5.0 (5.1). The 60 s deadline itself isn't exercised here (no encoder stays quiet that long)
Co-authored-by: SirSicard <[email protected]>
2026-11-10 17:34:40 -08:00
shinyobjectz a3477d0721 RR0: done: today's numbers on the Mac, the Windows PC and an iPhone. Mac: six chunks joined with ffmpeg -c copy 16.3 s quiet (25-27 s loaded), one render 31-38 s, the six start-ups 10.5-16 s; Windows: chunked 71.0 s, 47.3 s of it raea media concat's re-encoding join, React 12 ms a frame on QuickJS (10x the Mac's); the note by hand 3.6 s on the Mac and 64.7 s on Windows, against 29-43 s and 38 s for the whole film again. bench.ps1 runs bench.sh and change.sh on Windows' own PowerShell; the film's shots move to shots.tsx. bench/rerender/ios renders the shots on an iPhone 13 Pro Max (A15: shots 3-5 at 61-265 ms a frame; the atmosphere's Rgba32Float LUTs can't be filtered there, and shot 2 is killed at its first 3D frame); raea-io-os builds for iOS, where its system calls answer as headless (rfd, arboard and opener have no iOS backend) 2026-11-10 10:04:01 -08:00
shinyobjectz fc274e2870 DR3: under the size and copy limits: gen check's fitted-fix wording moves to raea-core-meshcheck (said_fix, tested there), Finding::read replaces four copies of reading a kept finding, the export cache prune is one pass over the folder, and the closures cargo-dupes matched by shape are written another way 2026-11-10 09:54:02 -08:00