Commit Graph
13 Commits
Author SHA1 Message Date
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 9d237cf06a SG4a: the shape cache lets go, in memory and on disk
raea-core-shape's cache of each shape expression's triangles held every one for the process, in memory and on disk.
A part whose size changes each frame is a new expression each frame, so a long render grew by a mesh a part a frame,
and the disk cache gained 2.46 million files (9.7 GB, 2.2 million of them boxes) in 12 hours of renders, filling the
disk to 1 GB free. Memory is held to 1 GB of triangles, let go past it and made or read again as asked; only a shape
that took 2 ms or more to make is kept on disk, the boolean cuts the disk cache was for.
2026-11-21 23:32:43 -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 2f377010ad scene lint, explain and export read a <BufferMesh>'s own triangles (three.js and R3F parts)
A <BufferMesh>'s shape is "buffer:{positions, indices?, normals?, uvs?}", what raea/r3f makes of every three.js
geometry. core/shape's cache read only CSG expressions, so contact, `raea scene lint|explain` and `raea scene export`
stopped at "unexpected ':' in a shape" on any R3F or <Three program> part (an img2threejs model in <R3F><primitive>
was the first case found, 11-16).

core/shape/src/buffer.rs: buffer_tris (moved from raea-sys-mesh, which re-exports it) and export_tris, triangles
written as GLB (POSITION, NORMAL, TEXCOORD_0) or OBJ (v, vn, vt) without going through Manifold, since a buffer mesh
needn't be closed. The cache reads a buffer: shape as its triangles; interchange's export writes a buffer mesh's GLB and
OBJ from them. mesh.rs's bounds and glb helpers are shared by both exports.
2026-11-17 19:52:34 -08:00
shinyobjectz bb5cb7ffdd A solid read from a mesh file is kept under the file's length and modified time as well as its expression, so obj("path") or glb("path") written again at the same path is read again. The kept-shapes cache named a mesh by its expression and the build only, so a scan remeshed in place (gambit's Iron Hindenburg head, 11-17) kept drawing its first mesh, holes and all, until RAEA_SHAPE_CACHE=0. files_read finds every obj("...") and glb("...") in an expression, nested ones too, and folds each file's stamp into the key; an expression that reads no file keys as before. Test: the same path written again reads as another file. 2026-11-17 19:52:34 -08:00
shinyobjectz f25c925eec A script's solid is its expression until something needs the solid. /3d's manifold held a built Manifold for every solid a script made, so a set made of cuts was cut twice on every open: once here as the script ran, and again by the renderer, which builds its meshes from the expressions (and now keeps them on disk). A boolean, a move, a rotate and a scale now only write the expression; a query, a mesh, an export or an operation on the solid itself builds it then, from the expression (raea-core-shape's solid_or_empty, so a boolean that left nothing can still be asked whether it is empty). A launch-film set played offscreen at frame 0: 4.6 s to 3.6 s, another 4.4 s to 3.2 s, each frame the same bytes as before; examples/headless/solids-and-worlds.ts passes its 12 checks. 2026-11-10 05:46:47 -08:00
shinyobjectz bec8cddcf0 kept.rs names raea's caches folder without the closure another file already has 2026-11-10 04:30:04 -08:00
shinyobjectz ee62b13253 A solid's mesh is kept on disk between runs. An expression's mesh is the same every time a build makes it, and the boolean cuts of a furnished set were a quarter of the seconds its scene took to open, on every open. raea-core-shape's cached() now reads the mesh it made before from raea's caches folder (shapes/, named by the expression and by the running build, written beside and moved into place) and makes it only when it isn't there; RAEA_SHAPE_CACHE=0 turns that off and =DIR moves it. A launch-film set played offscreen at frame 0: 12.2 s with it off, 4.6 s kept, the frame the same bytes. 1 test (a kept mesh reads back bit for bit; one cut short isn't read). 2026-11-10 04:29:00 -08:00
shinyobjectz 2ff13ee50b FC2a: bindless Materials as Bevy draws them without bindless (shader/shader_material_bindless, shader_material_2d_bindless, 133/133)
A Material's declarations under @if(BINDLESS) are left as written: raea's Materials aren't bindless, so that set
compiles out and the @else set binds, as Bevy's does on a GPU without bindless (ui_bind.rs bindless_spans).

A Cylinder alone is drawn as Bevy's Cylinder mesh (32 sides, one segment), with its normals and texture coordinates,
as a lone sphere, cuboid and plane already are: a shader reading its uv now compiles (core/shape cylinder_of).

Mutants: the cylinder's colour, its logo and the cube's blue are each caught (the blue by a pixel probe, 236 against
214); the radius by the pixel count. In 2D a logo swap is caught; Mask against Opaque draws the same picture in Bevy
too (a custom Material2d doesn't discard, and the Mask pipeline doesn't blend).
2026-11-08 07:13:06 -08:00
shane 3381690416 raea is developed here now (public-first)
This repository was an export of a private one; from this commit on it is where raea is developed. Contributions:
CONTRIBUTING.md.
2026-11-07 13:36:50 -08:00
shane d3c399b4d5 raea origin/main 2026-11-07 01:29:24 -08:00
shinyobjectz ad67361762 raea e2d2dd2c0 2026-11-06 20:49:59 -08:00
shinyobjectz f675b0ad2b raea dc579e418 2026-10-31 13:15:29 -07:00