8 Commits
Author SHA1 Message Date
shinyobjectz 9ebedb3f6f A render's timings (the JSON line on stderr after a video) print only with RAEA_RENDER_STATS=1. The fed, CPU, direct and engine paths each printed it after every render, so a person's terminal and the app's render log showed a line of numbers beside raea's own APPLIED line. The benches that read it ask for it: bench/rerender's bench.sh, bench.ps1 and the iOS app's entry, and bench/lightspeed/export.sh; nothing else read it (tools, apps, docs, tests). RAEA_TIMES' lines are unchanged. On bench/rerender/pages.tsx: without the variable stderr holds the APPLIED and summary lines only; with it, the fed path's line as before 2026-11-10 16:26:20 -08:00
shinyobjectz d45b38ef60 An HTML page's files load on Windows (fixes #40, fixes #41, fixes #42). The HTML runtime was handed the page's folder as Windows wrote it: canonicalized to a verbatim \\?\D:\ path (#40), or as D:/..., which a URL reads as scheme d (#41). The cached Google Fonts face came back from html.read as C:\... (#42). Its backslashes became CSS escapes in url(), and the drive a URL scheme in src. Now the folder is canonicalized without the verbatim prefix (raea_io_home::plain), and the runtime gets every path in URL form: raea_io_home::url_path, /D:/work/page on Windows, which the page's file:/// base joins into file:///D:/work/page. That covers the page folder, the font folder and html.read's answers. What the runtime names back (html.read's urls, a video's file, a sound's src) is read through from_url_path. Nothing changes on Unix, where both are the path itself. io/home's test checks the forms on any system, and joins them to file:/// as Blitz does: the result is a file URL, not scheme d 2026-11-08 01:40:12 -08:00
shinyobjectz 3e1efbab77 #32: an HTML page renders to PNGs, a folder (-o DIR, one frame-NNNNN.png a frame) or one still (-o OUT.png: frame 0, or the one --at names), and --alpha gives them a transparent canvas, as a TSX composition's do. The direct path wrote only video or hashes, so -o frames wrote an MP4 named frames, failed with "Is a directory" when the folder was there, and --alpha couldn't apply.
How: gpuview's direct render has an RGBA mode (GpuView.rgba): its three-deep readback ring copies the composite itself (RGBA8 premultiplied) instead of making NV12, so a PNG costs no extra pass. runtime/encode writes each frame straight-coloured (straight(), the engine path's un-premultiply, now shared). RenderOpts.alpha (apps/media's --alpha, refused for video) sets the page's canvas row to #00000000; the camera's clear colour was read as RGB with alpha forced to 255, so a clear canvas came out black. runtime/view's camera_bg reads #rrggbbaa, premultiplied, for gpuview and cpuview (one function where each had its own copy). The help and cli.md say OUT.png and --alpha for PAGE.html.

Check: bench/html-png/check.sh (a half-opaque red box sliding over an empty canvas): -o DIR --at 0,29 writes two PNGs, and the box moved between them; -o DIR into a folder that's there works; -o OUT.png --at 29 is byte-identical to the folder's frame 29, and -o OUT.png is frame 0; opaque, the canvas is white and the box pink (255,127,127); with --alpha the canvas is 0,0,0,0 and the box straight red at half alpha (255,0,0,128); --alpha to an MP4 is refused. It fails on the raea before this and passes on this one. bench/html-repeat, bench/frame-panic and bench/dropped-css still pass.

Video is unchanged: bench/html-repeat to .txt gives identical hashes for all 270 frames before and after. fps to MP4, seven alternating rounds on a shared, busy machine (the "before" build is about an hour older, with other lanes' changes): median 181 before vs 170 after, ranges 165-202 and 159-198, no difference beyond the noise (closes #32)
2026-11-07 17:56:27 -08:00
shinyobjectz 1eb646f7b9 #33: a panic as a frame draws ends the render with an error naming the frame and the panic, and keeps the frames drawn before it. Each frame loop catches a panic in its drawing (raea_gpu_device::check::frame_caught, or around the pipelined engine's run, which names the newest frame sent) and returns it as an error, "raea panicked drawing frame N: <message>"; the panic hook still prints it and where it was, and the crash log keeps it. On that error, or any other mid-render, the direct path drains the frames in flight to the encoder, the fed path finishes the file without sound, the engine path finishes its encoder, and hashes so far are written, so the file holds every frame before N and the error says how many and where ("no frame was written" when none). Exit 1 now, not a panic's 101. RAEA_PANIC_FAULT=N (docs/settings.md) panics as frame N draws, for the check: bench/frame-panic/check.sh renders an HTML page to .mp4 and .txt, a 2D page to .mp4 and .txt, and a 3D scene to .mp4 and a PNG folder at RAEA_PANIC_FAULT=100, and each exits 1 naming frame 100 with exactly 100 frames kept; without the fault the same renders give all their frames. Speed, two builds of this tree with and without the change, five runs each alternating (the machine was busy: medians), to .mp4: a 2D page 427 fps before, 435 after; #20's HTML page 214 before, 235 after; a 3D scene 71.7 before, 71.5 after (a frame catch costs nothing until something panics).
(closes #33)
2026-11-07 17:00:09 -08:00
shinyobjectz 5af23ab8d4 HTML: a page's canvas is white, as a browser paints it (CSS Backgrounds 3, the canvas background), instead of black, so a page that sets no background shows its default black text; a root's or body's background still covers the canvas (closes #30) 2026-11-07 15:51:44 -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
shinyobjectz 1dff4f0aa8 raea e699cf684509a8bbada118cc302c56e99065a680 2026-11-05 17:19:37 -08:00
shinyobjectz f675b0ad2b raea dc579e418 2026-10-31 13:15:29 -07:00