Bevy applies the extract schedule's commands in the next frame's render schedule. A still draws one frame and drops
the Engine, so each extract system went with its queue unapplied and bevy_ecs warned "CommandQueue has un-applied
commands being dropped" 54 times (lldb on the warning: the extract systems' FunctionSystemState, dropped with the
render sub-app's schedules from render_with). Engine's Drop now runs the extract schedule's apply_deferred on the
render world, as Bevy's apply_extract_commands does each frame. Checked on the binary: a still of the starter edit
prints no CommandQueue line, and a video renders with 0 findings. forward_render_diagnostics is written shorter to
keep raea-render within 2,000 lines.
apps/check was at its 2,000-line limit (tools/size.sh) with three of #89's items still to come. The screen itself
(Px, Swings, FlashScreen: WCAG 2.3.1's opposing swings in a frame's windows, from decoded RGB) is pure pixel maths
with nothing of the check's, so it moves to apps/check/flash with its six tests, unchanged; the FFmpeg side (the
decode, showinfo's exact times, the log's severities, the findings) stays in flash.rs. apps/check goes to 1,680
lines. CI's unit tests take the new crate too. And raea-render's log-filter comment is folded a line shorter: the
merge of #104 left the crate at 2,001.
* 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]>
stage.pick answers what is under a point of the stage, the page and its 3D as one picture: a 3D part (its layer key,
name, JSX props, box, the point hit and its distance; the nearest mesh along the pointer's ray, skinned meshes as
posed: systems/frame pick.rs) or the page's element, with the part behind it. stage.view draws the 3D from an orbit
until it is given back (systems/frame view.rs, FreeView). stage.props sets a composition's props over its defaults
as it plays (the entry's raea-props). What the stage opens is stamped, so every pick has its place in the code.
stage.seek (written 11-07 for the editor's Live, never committed) lands with it. raea media still takes --width.
Proof: raea play shapes.tsx --offscreen --seek 10 --pick 640,330 answers shape-2 at shapes.tsx:28:11#2 with its
props; --view 1.2,0.9,9 draws it from above. docs/preview.feature is the plan.
bevy_solari 0.20 is vendored (vendor/bevy_solari, changes marked "raea:"). Each TLAS instance now carries a mask, so a
ray finds the nearest opaque hit and then walks the see-through instances up to it: Mask materials stop it by their
cutoff, Blend by the chance of their alpha, Premultiplied by that plus their clear coat's Fresnel share (the path
tracer shades the coat alone, weighted back), and Add never. Before, every traced mesh was opaque, so a transparent
skin turned what it covered black. StandardMaterial's uv_transform now applies to traced texture reads.
<Environment> finds a panorama's sun when it loads (systems/environment sun.rs), using the panorama's own floats, and
Solari samples that sun as a directional light. Inside the sun's disk the environment map shows the sky around it, so
its light isn't counted twice; camera rays and mirror bounces still see the panorama's sun. The path tracer bends a
normal-mapped normal that faces away from a grazing ray, which removes the black streaks toward the horizon of a bumpy
plane.
- raea-sys-shader (failed.rs): a shader raea registers for a scene (a ShaderExtension's surface and lit hooks, an own
material's, a UI material's) that doesn't compile left its pipeline out, the frame drew without it (black) and the
render said APPLIED. The render world now finds those pipelines in Bevy's cache and refuses the render with the
compiler's error, through raea-gpu-device's refuse, which the frame's read back checks. Repro: `patch` (a WGSL
reserved word) as a variable in a surface() hook.
- engine/render/raytrace: SolariPlugins makes every StandardMaterial deferred, but Bevy's Pathtracer requires only Hdr,
so a <Pathtracer /> camera had no deferred prepass and Bevy's prepass queue panicked unwrapping its deferred phase.
A Pathtracer camera now gets DepthPrepass and DeferredPrepass.
Mesh2d takes all of bevy_math's 2D primitives (CircularSector, CircularSegment, Annulus, Capsule2d, Rhombus,
Triangle2d, Segment2d, Polyline2d, ConvexPolygon beside Circle, Rectangle, Ellipse and RegularPolygon), each with its
reflected fields, and any of them as Bevy's Ring: `ring={thickness}` (to_ring) or `inner={...}`. A Shape2D row
carries the spec as `primitive` and raea-sys-mesh's primitive_mesh builds it, as Bevy's mesher does.
Two fidelity gaps 2d_shapes exposed, fixed for every 2D part:
- A Mesh2d's ColorMaterial colour reached the GPU rounded to a hex. It now goes as the Srgba's floats (`srgb`).
- 2D drew single-sampled, where Bevy's Camera2d defaults to 4x MSAA, so edges between pixels snapped. An edit with
2D mesh rows now gets MSAA (raea_sys_sprite::has_2d, beside has_3d at the two MSAA call sites only, not the
encoder's), and the 2D camera keeps to the 3D camera's MSAA every frame, sharing its main texture. The frame tag's
Camera2d on the same target keeps to it too: Bevy makes one 2D depth texture per target, so differing sample
counts were a validation error.
A relative import of a file under raea's sdk/ that isn't an SDK package's source (a bench's shared helper) is now
copied into the bundle like any outside import; before, everything under sdk/ was assumed to come by name.
New bench helper sdk/raea/bench/bevy-parity/helpers/theme.ts: examples/helpers' basic_example_theme, option checkbox
and bottom-left column, used by 14 Bevy examples.
2d_shapes passes at 0.99987: the shapes area matches with 0 pixels off by more than 2%; the rest is the checkbox
captions' glyph edges (the known text item). Every port was rerun after the MSAA change: 152 of 152 pass.
skills/ pins raea-skills 004b866 (#8), whose generated sdk.md lists the new primitives.
Bevy's specialized_mesh_pipeline draws meshes that have no material by a SpecializedMeshPipeline of its own: positions
at location 0 (compressed or not), colours at 1 under VERTEX_COLORS when the mesh has them, depth tested and written
GreaterEqual, under the view's MSAA. raea's <MeshPass> now does all of it:
- `depth`: it tests and writes the view's depth as an opaque mesh does. The pass always attaches the view's depth (a
pipeline's depth state must match the pass), so without `depth` it compares Always and writes nothing, as before.
- a mesh's colours go to location 1 under VERTEX_COLORS, as Bevy's own specialize does.
- the pipeline takes the view's MSAA sample count (it assumed 1, so it only worked with Msaa off).
And <Mesh3d material={false}> (any <Mesh>) gets no material at all, as a Bevy Mesh3d without a MeshMaterial3d, so
only its own pass draws it: row no_material, spawned beside the toon branch (engine/render line-neutral).
Parity: SSIM 1.000000, worst tile 0, batch keys 0 / 0 at frames 5 and 10. Without material={false} the pixels were
already exact, but raea drew 2 batch keys of default material Bevy doesn't. Mutants: without the vertex colours it
fails (0.961897, tile 147); without `depth` it is unchanged, since the rectangle is behind the triangles and the pass
draws far to near. custom_render_phase, custom_phase_item, custom_shader_instancing, 3d_scene and mesh2d still pass.
150 ported, 150 passing.
<MeshPass shader> inside a mesh draws it again by your shader file as written, in a sorted phase after the camera's
main opaque pass, onto the colour target with no depth attachment and back faces culled, with Bevy's mesh view and
mesh bind groups: raea-sys-phase's MeshPass, Bevy's custom_render_phase stencil phase made a component. A mesh's
`compressed` prop compresses its geometry as Bevy's compressed_mesh(&MeshCompressionArgs::regular()) does
(raea-sys-mesh finished), so a shader reads its positions under VERTEX_POSITIONS_COMPRESSED; engine/render's mesh
build calls it in the same line, keyed on it.
The port is pixel-identical to Bevy at frames 5 and 10 (0 pixels differ). A 1 to 3 cm move of the sphere, camera or
cube still passes the SSIM bar but is 177 to 629 pixels off, so the exact match is the port's, not the bar's. The parity
host gets indexmap and nonmax, the example's own dependencies. 144 of 438 ported, 144 passing.
Bevy's custom_vertex_attribute gives a cube a BlendColor attribute and lays out the material's vertex buffer as
[POSITION at 0, BLEND_COLOR at 1] in its specialize. raea now does both:
- sdk/render: MeshVertexAttribute.new(name, id, format) and Mesh's ATTRIBUTE_* constants; Mesh3d `attributes`
([[attribute, values]], a value a vertex); Material `vertex_attributes` ([[attribute, location]]).
- runtime/scene: the mesh row carries `attributes` from the first frame.
- raea-sys-mesh attribute.rs: with_attributes inserts them into the mesh (names interned once, as Bevy's are
&'static str); engine/render's shared mesh keys on them, line-neutral.
- raea-sys-shader own.rs: the layout is part of the pipeline key, and swap sets the vertex buffer to
layout.0.get_layout of the named attributes, as Bevy's specialize does.
Parity: frames 5 and 10 at ssim 1.000000, 0 pixels off. Mutants: a green BlendColor, BlendColor at location 0 and
four blue vertices fail the bar. Moving the cube 0.1 up and halving the uniform's red pass the bar but the probe
counts 6,067 and 36,685 pixels off (the known SSIM blind spot; the real port is 0).
skills/ pins raea-skills 5218644 (#7), whose generated sdk.md lists the new names.
Since a3db7b6db, `raea render X.tsx --at N` refused every TSX composition ("no two readbacks with its tag agreed in
240 updates"). That commit gave every camera on the Engine's target a w x h Viewport above the tag row. The frame tag,
a 16 x 1 UI node in that row, was laid out under the scene's camera (UiTargetCamera), so bevy_ui clipped it to the
viewport and no readback ever carried a tag. Full renders and HTML stills don't wait on the tag and kept working.
The tag now has a camera of its own (raea-sys-frame spawn_tag, called where load.rs spawned the node): a Camera2d on
the same target, ordered last, on no render layer (so it draws no sprite or mesh), with no tone mapping, dither or
MSAA. Its texture is cleared to transparent and alpha-blended over the target, so every pixel but the tag's is left
as the frame's cameras drew it. tag_row_view leaves it out of the viewport it gives the rest.
bench/at-0/check.sh renders a one-colour composition with --at 0 and checks the frame is 160 x 160, one colour, and
#246 in its last row. It refused on a3db7b6db and passes now. bench/at-3d still passes (its four frames are
pixel-identical to the frozen render's), an mp4 render works, and the whole bevy-parity suite was rerun with the change.
Three of Bevy's shader_advanced examples now run as written, each through a general feature.
A compute writes a mesh (shader_advanced/compute_mesh). A <Compute file> binds each var<storage> its file declares:
either its own buffer, its first contents in the type's storage layout and kept from frame to frame, or a mesh's
vertex or index slab in Bevy's MeshAllocator, found by its part's name (systems/compute/src/slab.rs). A uniform
field given { start: NAME } or { end: NAME } is that mesh's range in the slab, counted in the array's elements, and
is packed each frame once the allocator has placed the mesh. The allocator's slabs carry STORAGE usage, set before
MeshAllocatorPlugin's finish makes the allocator, as the example's plugin sets it. A <BufferMesh> with indices and
normals is now Bevy's indexed Mesh, its index buffer kept, instead of flat triangles (systems/mesh/src/indexed.rs);
3d/vertex_colors, which takes that path, still passes. Every row with a name now gets a Bevy Name, not only bare
entities.
Your own phase item (shader_advanced/custom_phase_item). <PhaseItem> puts raea-sys-phase's PhaseItem and an Aabb on
an <Entity>. A new crate, systems/phase, queues it into each view's Opaque3d phase with a pipeline of its shader
file as written, drawing its own vertex buffer (its stride and attributes) and index buffer with its depth state,
as the example's queue_custom_phase_item does.
A frame pass as written (shader_advanced/custom_post_processing). A <FramePass file> binds its file's own @group(0)
declarations: each texture_2d<f32> is the frame (the one `frame` names) or an image, each sampler Bevy's default or
the one given, each var<uniform> its value (systems/framepass/src/written.rs). Its uniforms may change frame by
frame: like a compute's entry and bind, they are a keyed string column, and the pass repacks them when they change.
FramePass moves out of materials.tsx (at its 500-line limit) into 3d/framepass.tsx. The group(0) declaration parser
the compute and the pass share is raea-sys-shader's bindings::group0.
A camera on the Engine's target now draws a w x h Viewport of the w x (h + 1) tag-row target, as orthographic
cameras already did. A perspective camera had a sub view of the whole target, so a draw in clip space, such as the
phase item's triangle, mapped to 721 rows: its bottom edge landed 0.75 px low and the port passed at SSIM 0.9936 with
2355 pixels off. It is now pixel-exact. The whole suite was rerun with the change.
Results:
- compute_mesh passes at frames 5 and 10 (SSIM 0.999999, 2 pixels off at a 2% threshold). Eight mutants all fail the
bar: no dispatch, either range set to 0, indices written into the vertex slab, the compute's mesh unnamed, the
other cube's colour, no shadows, and the other cube moved.
- custom_phase_item passes at frames 5 and 10 with SSIM 1.0 and 0 pixels off. Mutants: the second attribute at
offset 12, a vertex given another colour, and the top vertex at y 0.9 all fail the bar; a vertex moved from 0.866 to
0.86 passes on SSIM (0.9953) but leaves 1556 pixels off, where the port leaves 0.
- custom_post_processing passes at frames 10, 30 and 60 (SSIM 0.99995, 0 pixels off). Mutants: no white clear colour
fails the bar; intensity times 4/3 (8100 pixels off), a slower turn (4256), a linear sampler (16) and sin(t) for
sin(sin(t)) (2964 at frame 60) pass on SSIM but leave pixels off. The pass before tone mapping draws the same
frame, as it should: the camera is not HDR, so Bevy tone-maps in the material shader and its tonemapping node is
skipped.
- After the change, the whole suite passes: 141 of 141 ported (two first-run misses rerun clean: standard_widgets
missed its replayed menu click on the Bevy side, automatic_instancing missed its frame-time bar under another load).
A <Compute file> compiles its shader file as written, binding its own @group(0) storage textures and uniforms
(systems/compute/src/written.rs). Each frame picks the entry point and which image each storage texture binds, as
a Bevy example's render-graph node picks its pipeline and bind group. Its images are render:NAME images in the
storage format the file declares, each with a sampler if one is given.
Strings can now change from frame to frame. A row column holds a number per frame, so a changing string is kept
as the list of values it takes plus a keyed index into it (raea-runtime-look's keyed_strings, read back with
raea-sys-frame's keyed). The changing-picture code for ImagePlane already worked this way and now uses the helper.
A Compute's entry and bind use it, and so does a Sprite's src: a Sprite can show a render:NAME image and switch
to another by name each frame.
The render-image registry (RenderImages) moves into raea-sys-frame, so the sprite system can look images up by
name. raea-runtime-plugins re-exports it.
A still renders only the frames it needs and their neighbours. When a scene has a compute that carries state
between frames (a file's images, or its own buffers), every frame up to the wanted one is now rendered, because
the GPU state can't be rebuilt from one frame.
Load checks every entry name and binding the run uses. A frame whose entry leaves a storage texture unbound is
logged and skips its dispatch.
shader/compute_shader_game_of_life passes at frames 10, 11, 30 and 60 with SSIM 1.0 and 0 pixels off. Frame 11
was added so each of the two images' samplers is drawn. Mutants are caught either by the bar or by the 2% pixel
probe: init a frame late, swapped bindings, alive colour, sprite parity, either image's sampler, clear colour,
scale, and one extra row of workgroups. The extra-row mutant passes SSIM at 0.9994; the probe finds 784 pixels off,
against 0 for the real port.
<Sprite><Material/></Sprite> is Bevy's SpriteMaterial<M>: raea's OwnMaterial is also a MaterialExtension2d, so it
extends the sprite's own SpriteMeshMaterial and its shader reads the sprite through sprite_mesh::functions. A
Material's fixed slots now start at 30, past the sprite's own bindings (a UiMaterial's still start at 0), and an
alpha mode the spec doesn't give leaves the sprite's own.
Live play now carries a Material's values frame by frame: a one-frame program sends its own:uniforms row, and a
component whose target keeps its render id (a sprite, a 2D shape) is no longer dropped.
The parity host's input script takes key names (KeyCode's: "Space"), held in ButtonInput<KeyCode> after Bevy's
input systems, so input_just_pressed sees a press on its update.
shader/sprite_material passes at 6 frames across two Space presses (SSIM 0.99983, the text's tile). Mutants of the
amount, the burn edge's width and the delta fail. A burn-edge colour mutant passes the bar, which can't see a thin
edge's colour, but the edge probe catches it: the same 1721 edge pixels, green total 1428 real against 1266 mutant,
and 1428 in Bevy's. The Material, sprite and 2D ports rerun pass.
A <Material> in a Mesh2d is Bevy's Material2d: raea-sys-shader's OwnMaterial implements both Material and Material2d
(group 3 in 3D, 2 in 2D), so the bindings, the imports beside the file and the packing are one code path;
alpha_mode maps to AlphaMode2d (Opaque, Mask, else Blend), and cull_mode now keeps the pipeline's own unless given
(Back in 3D, none in 2D, as Bevy's pipelines have them). Mesh2d carries it to Shape2D as `shader`, the shape row
keeps it as a JSON column, and raea-sys-sprite's spawn_shape puts MeshMaterial2d<OwnMaterial> on in place of the
ColorMaterial, its textures decoded at once (own::picture, which the UiMaterial now uses too).
raea's 2D camera draws over the 3D camera on its target. With the 3D camera single-sampled and not Hdr (a 2D-only
scene's), the two share one main texture, so the 2D camera's blit used to alpha-blend the finished frame over
itself (Bevy blends every camera after the first on a target). It now replaces, as a lone Camera2d's does: a 2D
fragment's alpha below 1 reaches the frame as Bevy leaves it. Found by shader/shader_material_2d, whose Mask(0.5)
material writes alpha 0.5 and never discards: Bevy's centre pixel (0, 0, 40), raea's was (29, 29, 43) and is now
(0, 0, 40). A mixed scene (a multisampled 3D camera) keeps the blend.
Port: shader/shader_material_2d, SSIM 1.000000 (the Blend mutant fails, 16384 px off). The full sweep passes
126 of 126.
2D was drawn 0.14% small. An orthographic camera on the engine's w x (h + 1) target (the frame and its tag row) saw
the frame through Bevy's SubCameraView, whose orthographic math sizes its area from the 721-row target. A white rect
at (90, 510) drew at 41..140 instead of 40..139. Every 2D port still passed the pixel bar. Orthographic cameras now
get a w x h Viewport instead (engine target.rs, line-neutral). 2d/sprite and 2d/move_sprite went from SSIM 0.998
(worst tile 8-9) to 1.000000.
New in the SDK:
- Bevy's primitive meshers by name (systems/material mesh.rs): CircularSector, CircularSegment, Segment2d/3d,
Polyline2d/3d, ConvexPolygon, Ring (`inner`, or `ring: thickness` as Bevy's to_ring), Extrusion, the Sphere's uv or
ico kind and Plane3d subdivisions.
- <Model nodes>: glTF nodes' local transforms by name, each frame.
- Lights' shadow_depth_bias and shadow_normal_bias.
- <Sprite image_mode> (Bevy's SpriteImageMode: Auto, Scale, Sliced and Tiled) and <Sprite sampler>. A sprite sheet is
no longer forced to nearest; the ports whose examples use ImagePlugin::default_nearest ask for it.
- Text2d's Anchor, and it no longer wraps (Bevy's Text2d is unbounded).
- Srgba.hex takes Bevy's 3, 4, 6 or 8 digits.
- Quat.slerp.
- The parity probe marks the example's highest-order window camera as the UI camera, unless the example marked one
itself.
New ports, all passing: camera/2d_on_ui, gltf/load_gltf, gltf/gltf_skinned_mesh, animation/animated_transform, 3d/fog,
3d/3d_shapes, 2d/sprite_scale and 2d/sprite_slice.
Mutants:
- Caught by the bar: skinned mesh without the joint pose and at PI/3; animated_transform without the controller's
turn; 3d_shapes with a Cuboid for the Tetrahedron.
- Caught by pixels off: 3d_shapes' ring thickness (4736 vs 2911) and animated_transform's scale key (728 vs 0).
- Passing the bar: fog's end and colour (SSIM 0.989 / 0.990). The real fog port matches Bevy to within 1/255 in every
fogged region, and its 5819 pixels off are the help text.
- sprite_scale's gabe sheets match Bevy byte for byte at frames 10 and 60.
raea_sys_frame::pipe does inside the engine's own update what Bevy's PipelinedRenderingPlugin does: a render thread (one for the engine's life) draws the frame the last update extracted while the main world runs this one; then this frame is extracted and the render world waits, home in the App, so what reads it between updates is unchanged. A render's frames and a live engine's catch-up steps pipeline; a live draw still hands its frame on drawn. RAEA_SERIAL or RAEA_PIPELINE=0 turn it off. Vello's renderer moves from a NonSend to a resource (in a SyncCell) so the render world can change threads.
FrameRows::vals made a row's values on every call, and six of the 3D's systems call it for every row (44% of a many_foxes update); set_cols now keeps each row's values, made on first ask, for the frame.
many_lights 6.2 -> 3.9 ms against Bevy's 4.9, many_foxes 11.8 -> 5.5-6.2 against 6.05; pixels identical with pipelining on and off. tools/bevy-parity: 114 of 114 ported examples pass.
<Camera3d> takes Bevy's Camera order, clear_color (ClearColorConfig: Default, None, Custom) and viewport (physical px). Every camera in a scene gets a camera row: the first is "cam", and each one after it is cam1, cam2 and so on (runtime/look camera.rs). Renders and live play spawn them all, and raea-sys-frame's camera_pass puts each row's order, clear and viewport on its Camera. Per-camera UI goes in a <Viewport> inside <UiTargetCamera>.
two_passes: 0.999025, 0 px off in render and live. split_screen: 0.998973, 1142 px off in render, 673 in live play. Mutation tests: a missing viewport, a shifted viewport, a moved camera and a changed justify_content fail the bar. The pixel probe catches the light angle, button width, padding, margin and plane size. Reversing the camera order is equivalent because the viewports don't overlap. In live play, extra cameras keep the place they had on the first frame.
kept-mount and kept-unmount drew the cube with hard edges on the live route from frame 10, where it mounts: the live camera spawns before any 3D part, so spawn_camera's has_3d check left MSAA off, while the program route's camera sees every frame's rows at load and turns it on. Engine::set_rows now calls raea_sys_post::msaa_for_3d, which turns MSAA on for a 3D camera once its rows have 3D, under spawn_camera's own rule (not with ssao, aa, outline, frame_looks or passes, not in preview).
bench/live-3d/check.sh adds both cases: 11/11 pass, every frame equal between the routes (frames 10-19 differed before, program 158 vs live 216 at the cube's edge).
kept-mount, live route, ms a frame before vs after, back to back: 26.9/23.0/23.7 vs 24.5/21.6/22.6.
LiveScene's camera row now lists every panorama shown so far (runtime/look's env_shown: the list last sent, then this frame's if new), with env_i pointing into it, and sends env_srcs when the list grows. Engine::set_rows hands a live frame's rows to raea-sys-environment's live_rows. It makes and bakes a new panorama at the first one's face size (grow, which shares panorama() with the load's environment()), then keeps updating until the new light is filtered, so the frame of the cut isn't lit by empty targets. Those updates draw nothing and step no time: the time strategy is held at zero and put back. A camera that had no panorama gets its whole environment the same way. The code sits in raea-sys-environment and raea-runtime-look because raea-render and raea-runtime-scene are at their 2000-line limit.
bench/live-3d/check.sh adds bevy/environment and material-field-0 (c0fd55f43): 9/9 compositions' per-frame hashes are identical between RAEA_3D=program and RAEA_3D=live with RAEA_LIVE3D_CHECK=1, where the raea before this differs on 30 of environment's frames. bevy-ts check.sh: 92 pass, 1 open (shader-character, open before).
fps, bevy/environment rendered live back to back, three runs each: 19.0, 19.2, 19.7 ms a frame before, 20.6, 18.7, 20.6 after (the second panorama decoded and baked once at the cut, which live play skipped before). The program route doesn't take this path.
Dropped CSS: stylo drops what it can't parse silently unless a ParseErrorReporter is passed, and blitz-dom passed none, so a render printed APPLIED over a picture missing some of its code. vendor/blitz-dom/src/not_applied.rs is that reporter, passed at every author parse (stylesheets and @imports in net.rs, <style> in document.rs, style attributes in node/element.rs, CSSOM in cssom.rs; never the user-agent sheet). It keeps each drop once per property and selector, never its value ("-webkit-text-stroke in .outline", "... in a style attribute"), since a style attribute is parsed again on every frame it changes. FileNet's loads that fail join the list ("the file ... (it didn't load)"). The render prints it once after APPLIED (engine/cli for TSX, apps/media for HTML) as "NOTE the page didn't apply N things, and is drawn without them:", one per line, at most 20, and --manifest gets it as not_applied. RAEA_NOT_APPLIED=0 parses as before (docs/settings.md), for measuring.
Vendored stylo change, to upstream later: report_one_css_error (properties/declaration_block.rs) returned before reporting any unknown property with a -webkit-, -ms- or -o- prefix, which hid the reporter's main case, -webkit-text-stroke (Gecko-only in stylo, drawn as nothing). It reports them now, and raea's reporter skips the prefixed properties that change nothing in a picture (text-size-adjust, tap-highlight-color, font-smoothing, appearance, user-select and the like), so Tailwind's preflight adds no lines (a Tailwind page with gradients, rings, blur and truncate printed no NOTE). A value error is also named by the property stylo parsed, with the value after it. vendor.toml says both.
Noise: Bevy's bevy_asset::io::web and io::source warnings (printed by every render) and fontdb's skipped faces (system fonts it can't parse, which the reporter saw on Windows; a missing @font-face file, which the NOTE names) are filtered at both LogPlugins (engine/page motion.rs, engine/render open.rs). io/trace's `log` logger, which every third-party `log` record goes through, prints only warnings and errors now, and not fontdb's (Bevy's Ctrl+C handler printed two INFO lines on every render); every record still goes to the trace's events.jsonl.
Check: bench/dropped-css/check.sh renders the reporter's page as TSX (30 frames, its outline moving so its style attribute is parsed each frame) and as HTML. Each must exit 0 and print one NOTE naming -webkit-text-stroke and the missing font once each, with no INFO line and no bevy_asset or fontdb warning, and the TSX render's manifest must list both under not_applied. It fails on the raea before this (no NOTE) and passes on this one.
fps, one build with the reporter on and off (RAEA_NOT_APPLIED), seven alternating rounds on a shared, busy machine: the worst case (bench/dropped-css's page at 600 frames, dropping a declaration on every frame) median 516 on vs 479 off; bench/html-repeat median 202 on vs 172 off. No cost shows above the noise (min to max spans 315 to 620). (closes#34)
UI. raea's Blitz draws CSS border-image (css-backgrounds-3: slice, width, outset, fill, and stretch, repeat, round or
space per axis), loading border-image-source as a third image layer beside backgrounds and masks. ImageNode's
image_mode { Sliced: TextureSlicer } is that border-image, and data-raea-bevy-slice gives Blitz bevy_ui's own rules: the
corners are the slices times min(the node over the picture, max_corner_scale), and Tile tiles a part from its start
every slice times stretch_value. A flipped sliced picture is mirrored on a layer behind its children. An ImageNode's
image can carry its own sampler ({ path, sampler: { filter } }). UiScale lays its roots out in a window 1/value of the
frame and scales it up. Node takes overflow_clip_margin, which Blitz honours for every clipping overflow as bevy_ui's
resolve_clip_rect does. The page bridge resolves url(..) in a style value (a background, a border-image) as it does
an img's src, which no CSS picture did before.
2D. Shape2D and Mesh2d's ColorMaterial take a texture with its own sampler (raea-sys-sampler) and a uv_transform
(Affine2). Text2d places a Text at its Transform, centred as Bevy's Anchor::CENTER. The shape2d row carries the sampler,
the uv_transform and the vertex colours as JSON in one loop, which keeps raea-runtime-scene under 2,000 lines.
Ported, each with a mutant that fails:
ui/images/ui_texture_slice_flip_and_tile 1.0000 (stretched instead of tiled 0.7857, unflipped 0.8360)
ui/images/ui_texture_slice 0.9990 (corner scale halved 0.9800)
ui/scroll_and_overflow/overflow_clip_margin 0.9968 (without the margin 0.9890, tile 120)
2d/mesh2d_repeated_texture 0.9912 (no uv_transform 0.9420, no sampler 0.9666, Text2d not centred 0.9789)
ui/layout/flex_layout 0.9909 (a Center row as FlexStart 0.9463)
58 of 61 ported pass; many_lights, many_foxes and transparency_3d still fail, as before.