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
FC0a: ui/scroll_and_overflow/drag_to_scroll passes (SSIM 0.99999; not a pixel off at 1% fuzz, where hues spread over 260 degrees put 4995 off): 2400 hue tiles at UiScale 0.5 in a scroller at 0 until dragged
shinyobjectz36cbb99227de
diff --git a/bench/bevy-parity/examples.list b/bench/bevy-parity/examples.listindex 5698be50..799bf1e7 100644--- a/bench/bevy-parity/examples.list+++ b/bench/bevy-parity/examples.list@@ -84,3 +84,4 @@ ui/text/textui/text/text_debugui/ui_transformui/scroll_and_overflow/scroll+ui/scroll_and_overflow/drag_to_scrolldiff --git a/bench/bevy-parity/runs.tsv b/bench/bevy-parity/runs.tsvindex 8424df12..606d73ae 100644--- a/bench/bevy-parity/runs.tsv+++ b/bench/bevy-parity/runs.tsv@@ -83,3 +83,4 @@ ui/text/text - 10ui/text/text_debug - 10ui/ui_transform - 10ui/scroll_and_overflow/scroll - 10+ui/scroll_and_overflow/drag_to_scroll - 10diff --git a/docs/bevy-parity.md b/docs/bevy-parity.mdindex 16440269..7986d4b0 100644--- a/docs/bevy-parity.md+++ b/docs/bevy-parity.md@@ -4,7 +4,7 @@ Bevy v0.20.0's examples against their raea TSX ports (docs/control.feature FC0a)don't edit. An example passes when every probed frame passes pixels (SSIM 0.98 and no 32 px tile off by more than 24 of 255) and cost (batch keys andframe time at most 1.25x the example's). Wall time is one machine's, measured in the same run.-Examples: **438**, ported **84**, passing **80**, excluded **16** (docs/bevy-parity/excluded.tsv), left **342**.+Examples: **438**, ported **85**, passing **81**, excluded **16** (docs/bevy-parity/excluded.tsv), left **341**.raea's frame ms is its update's plus the time React takes to step a frame for its 3D (step), which the exampledoesn't pay.@@ -140,6 +140,7 @@ doesn't pay.| ui/text/text_debug | 10 | 0.984022 | 18 | 0 / 0 | 458 / 492 | 5 / 7 | 1 / 1 | 35.188 / 1.093 = 1.093 + 0 | yes | || ui/ui_transform | 10 | 0.999095 | 6 | 0 / 0 | 463 / 492 | 5 / 7 | 1 / 1 | 36.534 / 1.372 = 1.372 + 0 | yes | || ui/scroll_and_overflow/scroll | 10 | 0.997196 | 14 | 0 / 0 | 1988 / 492 | 5 / 7 | 1 / 1 | 35.528 / 1.129 = 1.129 + 0 | yes | |+| ui/scroll_and_overflow/drag_to_scroll | 10 | 0.999993 | 1 | 0 / 0 | 7644 / 492 | 5 / 7 | 1 / 1 | 33.654 / 1.161 = 1.161 + 0 | yes | |## Excludeddiff --git a/docs/bevy-parity/results.jsonl b/docs/bevy-parity/results.jsonlindex 18bdc3a6..efa36677 100644--- a/docs/bevy-parity/results.jsonl+++ b/docs/bevy-parity/results.jsonl@@ -127,3 +127,4 @@{"example":"ui/text/text_debug","frame":10,"ssim":0.984022,"tile":18,"bevy":{"batch_keys":0,"entities":458,"extents":[],"frame":10,"frame_ms":35.188,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.093,"step_ms":null,"cost_ms":1.093},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}{"example":"ui/ui_transform","frame":10,"ssim":0.999095,"tile":6,"bevy":{"batch_keys":0,"entities":463,"extents":[],"frame":10,"frame_ms":36.534,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.372,"step_ms":null,"cost_ms":1.372},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}{"example":"ui/scroll_and_overflow/scroll","frame":10,"ssim":0.997196,"tile":14,"bevy":{"batch_keys":0,"entities":1988,"extents":[],"frame":10,"frame_ms":35.528,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.129,"step_ms":null,"cost_ms":1.129},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/scroll_and_overflow/drag_to_scroll","frame":10,"ssim":0.999993,"tile":1,"bevy":{"batch_keys":0,"entities":7644,"extents":[],"frame":10,"frame_ms":33.654,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.161,"step_ms":null,"cost_ms":1.161},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}diff --git a/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/drag_to_scroll.tsx b/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/drag_to_scroll.tsxnew file mode 100644index 00000000..62e450e2--- /dev/null+++ b/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/drag_to_scroll.tsx@@ -0,0 +1,31 @@+// Bevy v0.20.0 examples/ui/scroll_and_overflow/drag_to_scroll.rs in raea's TSX: at UiScale 0.5, a window-filling node+// scrolling both ways (at 0 until dragged) over a grid of 60 rows by 40 columns of 100 px tiles, every other one black+// and the rest hues across (270 degrees) and down (90) at full saturation, half lightness; a tile turns red only+// under the pointer. Bevy's Camera2d over the default clear colour is the layered <Canvas3D>. In Bevy's default+// 1280 x 720 window.+import { AbsoluteFill, Composition, registerRoot } from "raea";+import { Canvas3D } from "raea/3d";+import { GridPlacement, Node, Overflow, RepeatedGridTrack, UiScale, percent } from "raea/ui";+import { Hsla, Srgba } from "raea/color";++const [W, H] = [60, 40];+const tile = (x: number, y: number) => ((x + y) % 2 === 1 ? new Hsla(Math.fround(Math.fround((x / W) * 270) + Math.fround((y / H) * 90)), 1, 0.5).to_srgba() : new Srgba(0, 0, 0));++function Shot() {+ return (+ <AbsoluteFill>+ <Canvas3D layered clearColor="rgb(43, 44, 47)" />+ <UiScale value={0.5}>+ <Node width={percent(100)} height={percent(100)} overflow={Overflow.scroll()}>+ <Node display="Grid" grid_template_rows={[RepeatedGridTrack.px(W, 100)]} grid_template_columns={[RepeatedGridTrack.px(H, 100)]}>+ {Array.from({ length: H }, (_, y) => Array.from({ length: W }, (_, x) => (+ <Node key={`${x},${y}`} grid_row={GridPlacement.start(y + 1)} grid_column={GridPlacement.start(x + 1)} background_color={tile(x, y)} />+ )))}+ </Node>+ </Node>+ </UiScale>+ </AbsoluteFill>+ );+}++registerRoot(() => <Composition id="main" component={Shot} durationInFrames={11} fps={60} width={1280} height={720} />);