Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
Single-threading and the idle gate on by default for 0.1.6 (the developer, 11-16): RAEA_ST=0 or RAEA_IDLE_GATE=0, in the environment or ~/.raea/env, for the old way. Known: a seek while a film plays shows one more frame from before it
shinyobjectz5cc53609a85a
diff --git a/engine/page/host/src/idle.rs b/engine/page/host/src/idle.rsindex 7bed266e..b8599a1b 100644--- a/engine/page/host/src/idle.rs+++ b/engine/page/host/src/idle.rs@@ -1,5 +1,5 @@-//! The window at rest (RAEA_IDLE_GATE=1 while it's checked on screen). Bevy's default runs the whole frame 60 times a-//! second, focused or behind other windows, though a page painted the same isn't drawn again (raea-sys-page draw.rs):+//! The window at rest (on by default since 0.1.6; RAEA_IDLE_GATE=0 draws every frame). Bevy's default runs the whole+//! frame 60 times a second, focused or behind other windows, though a page painted the same isn't drawn again (draw.rs)://! the page's step, its restyle and paint, and Bevy's render and present of a picture that didn't change were 0.29 of a//! core with the app's feed open and still (11-16). After half a second in which no page was drawn and none is//! animating, the window waits for input before its next frame (or 50 ms when focused, 250 ms behind other windows, sodiff --git a/engine/page/host/src/main.rs b/engine/page/host/src/main.rsindex 932c937f..e721575c 100644--- a/engine/page/host/src/main.rs+++ b/engine/page/host/src/main.rs@@ -108,19 +108,19 @@ fn main() {// every schedule on one thread: the window's ~290 systems a frame are each a few µs, and the multi-threaded executor// spent more waking its workers for them than they took (35% of the window's busy time at rest). On one thread, the// app's window used 34% less CPU at rest, 8% less through a drag and 4% less playing a film, its frames as long- // (11-16, three rounds each). Systems' own par_iter still use the task pools. RAEA_ST=1 (the environment, or raea's- // settings file: ~/.raea/env, read where the app's window has no shell to set it) until the window specs pass with- // it, then on by default (RAEA_ST=0 for Bevy's multi-threaded one). Open: playback's "a seek while it plays" shows- // one more frame from where it was after the seek (3 runs of 3; the multi-threaded run shows two, as the spec allows)- if raea_io_home::setting("RAEA_ST").as_deref() == Some("1") {+ // (11-16, three rounds each). Systems' own par_iter still use the task pools. On by default since 0.1.6 (the+ // developer, 11-16); RAEA_ST=0 for Bevy's multi-threaded one, in the environment or raea's settings file+ // (~/.raea/env: the app's window has no shell to set it in). Known: playback's "a seek while it plays" shows one more+ // frame from where it was after the seek (3 runs of 3; the multi-threaded run shows two, as the spec allows)+ if raea_io_home::setting("RAEA_ST").as_deref() != Some("0") {// a schedule that's running is out of Schedules: First sets the rest, Last sets First (Main is one system)app.add_systems(First, single_threaded).add_systems(Last, single_threaded);app.sub_app_mut(bevy::render::RenderApp).add_systems(bevy::render::ExtractSchedule, single_threaded).add_systems(bevy::render::Render, single_threaded);}- // on screen, a window with nothing changing waits for input (raea_page_host::idle); RAEA_IDLE_GATE=1 (the- // environment or ~/.raea/env, as RAEA_ST) while it's checked on screen+ // on screen, a window with nothing changing waits for input (raea_page_host::idle): on by default since 0.1.6 (the+ // developer, 11-16), RAEA_IDLE_GATE=0 (the environment or ~/.raea/env, as RAEA_ST) for every frame drawn#[cfg(feature = "window")]- if a.window && raea_io_home::setting("RAEA_IDLE_GATE").as_deref() == Some("1") {+ if a.window && raea_io_home::setting("RAEA_IDLE_GATE").as_deref() != Some("0") {app.add_plugins(raea_page_host::idle::IdlePlugin);}// on screen, bevy_winit's event loop is the runner (a ScheduleRunner here replaced it: no window, 11-04)