mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
A full bevy-parity suite opened one window per example, each taking focus, so the Mac was unusable while it ran. The Bevy side now runs with no window whenever its pictures are taken (RAEA_PARITY_PNG). The host's build.rs gives each example `crate::plugins(DefaultPlugins)`: its DefaultPlugins without WinitPlugin. In WinitPlugin's place, raea_sys_parity::Reserve makes as many empty entities as the window's plugin makes before an example's Startup (11: its observers and a Monitor for this Mac's display). The example's own entities then get the indices they get with a window: a port matches some by index (image_node_resizing's debug outline colours), and an index breaks ties in UI draw order (scrollbars' thumbs). Reserve also sends what winit sends as it makes the window, WindowCreated and then WindowResized, which split_screen lays its viewports out on. The probe's `run` is the App's loop, as Bevy's ScheduleRunnerPlugin runs one, with no wait between updates. The primary Window entity is still there, for the examples that read its size, and its cameras already drew into the probe's offscreen image (FC0a, 11-07). RAEA_PARITY_WINDOW=1 opens the window again to watch an example. raea's side was already headless (raea render, raea play --offscreen). The whole suite was run headless. Every ported example's picture scores what it scored with a window (split_screen 0.998973, scrollbars 0.994530, image_node_resizing 0.998153, standard_widgets 0.994691). Four failed only the frame-time bar while another session rendered a film on the same machine; their pixels pass. The results docs here are left at the last windowed run's, and the cost bar will be rerun on a quiet machine.