Skip to content

armgit / raea

Public Imported from GitHub
0

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.

FC0a: sliced and sampled UI pictures, UiScale, OverflowClipMargin, a 2D sampler and uv_transform, Text2d, and five more examples ported

shinyobjectz3a2b02748825
diff --git a/Cargo.lock b/Cargo.lock
index cbed57b0..194f78fc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -15474,6 +15474,8 @@ dependencies = [
"bevy",
"raea-core-program",
"raea-sys-frame",
+ "raea-sys-sampler",
+ "serde_json",
]
[[package]]
diff --git a/bench/bevy-parity/examples.list b/bench/bevy-parity/examples.list
index 5e683915..b3af8690 100644
--- a/bench/bevy-parity/examples.list
+++ b/bench/bevy-parity/examples.list
@@ -46,13 +46,18 @@ movement/smooth_follow
3d/rotate_environment_map
2d/mesh2d_alpha_mode
2d/mesh2d_vertex_color_texture
+2d/mesh2d_repeated_texture
3d/lightmaps
ui/styling/transparency_ui
ui/layout/fixed_node
+ui/layout/flex_layout
ui/images/image_node
ui/text/font_weights
ui/text/font_variations
ui/text/text_background_colors
ui/text/strikethrough_and_underline
ui/scroll_and_overflow/overflow
+ui/scroll_and_overflow/overflow_clip_margin
ui/images/ui_texture_atlas
+ui/images/ui_texture_slice
+ui/images/ui_texture_slice_flip_and_tile
diff --git a/bench/bevy-parity/runs.tsv b/bench/bevy-parity/runs.tsv
index 42198921..5bc08788 100644
--- a/bench/bevy-parity/runs.tsv
+++ b/bench/bevy-parity/runs.tsv
@@ -55,3 +55,8 @@ ui/text/strikethrough_and_underline - 5,10
ui/scroll_and_overflow/overflow - 5,10
ui/images/ui_texture_atlas - 5,10
2d/mesh2d_vertex_color_texture - 10
+2d/mesh2d_repeated_texture - 10
+ui/layout/flex_layout - 10
+ui/scroll_and_overflow/overflow_clip_margin - 10
+ui/images/ui_texture_slice - 10
+ui/images/ui_texture_slice_flip_and_tile - 10
diff --git a/docs/bevy-parity.md b/docs/bevy-parity.md
index e0a818be..09df1be0 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 and
frame time at most 1.25x the example's). Wall time is one machine's, measured in the same run.
-Examples: **438**, ported **56**, passing **53**, excluded **16** (docs/bevy-parity/excluded.tsv), left **369**.
+Examples: **438**, ported **61**, passing **58**, excluded **16** (docs/bevy-parity/excluded.tsv), left **364**.
raea's frame ms is its update's plus the time React takes to step a frame for its 3D (step), which the example
doesn't pay.
@@ -13,105 +13,110 @@ doesn't pay.
|---|---:|---:|---:|---:|---:|---:|---:|---:|---|---|
| 3d/rotate_environment_map | 5 | 0.999453 | 1 | 1 / 1 | 442 / 497 | 6 / 8 | 2 / 2 | 84.046 / 6.742 = 5.209 + 1.533 | yes | |
| 3d/rotate_environment_map | 60 | 0.999279 | 1 | 1 / 1 | 442 / 497 | 6 / 8 | 2 / 2 | 3.628 / 3.199 = 2.733 + 0.466 | yes | |
-| stress_tests/many_cubes | 30 | 0.995176 | 1 | 2 / 2 | 10444 / 10495 | 7 / 9 | 3 / 2 | 11.411 / 2.23 = 1.624 + 0.606 | yes | |
-| stress_tests/many_cubes | 60 | 0.995154 | 1 | 2 / 2 | 10444 / 10495 | 7 / 9 | 3 / 2 | 1.686 / 1.868 = 1.434 + 0.434 | yes | |
-| 3d/3d_scene | 10 | 0.999998 | 0 | 2 / 2 | 443 / 498 | 7 / 9 | 3 / 3 | 16.925 / 1.991 = 1.8 + 0.191 | yes | |
-| 3d/3d_scene | 5 | 0.999998 | 0 | 2 / 2 | 443 / 498 | 7 / 9 | 3 / 3 | 52.554 / 3.037 = 2.854 + 0.183 | yes | |
-| stress_tests/many_lights | 30 | 0.999957 | 0 | 1 / 1 | 100443 / 100495 | 7 / 9 | 3 / 3 | 14.486 / 6.088 = 4.017 + 2.071 | yes | |
-| stress_tests/many_lights | 60 | 0.999954 | 0 | 1 / 1 | 100445 / 100495 | 7 / 9 | 3 / 3 | 2.5 / 5.438 = 3.702 + 1.736 | no | frame 5.438 ms (3.702 update + 1.736 React step) vs 2.5 ms |
-| stress_tests/many_foxes | 30 | 0.989592 | 3 | 2 / 2 | 30464 / 31495 | 7 / 9 | 3 / 3 | 13.802 / 17.934 = 8.34 + 9.594 | no | frame 17.934 ms (8.34 update + 9.594 React step) vs 13.802 ms |
-| stress_tests/many_foxes | 60 | 0.990304 | 3 | 2 / 2 | 30464 / 31495 | 7 / 9 | 3 / 3 | 2.918 / 17.422 = 8.181 + 9.241 | no | frame 17.422 ms (8.181 update + 9.241 React step) vs 2.918 ms |
-| animation/animated_mesh | 30 | 0.996636 | 1 | 2 / 2 | 472 / 526 | 7 / 9 | 3 / 3 | 24.321 / 1.797 = 1.629 + 0.168 | yes | |
-| animation/animated_mesh | 60 | 0.996594 | 1 | 2 / 2 | 472 / 526 | 7 / 9 | 3 / 3 | 16.634 / 1.473 = 1.355 + 0.118 | yes | |
-| shader/extended_material | 30 | 1.000000 | 0 | 0 / 0 | 448 / 495 | 6 / 8 | 1 / 2 | 23.299 / 1.065 = 0.849 + 0.216 | yes | |
-| shader/extended_material | 60 | 1.000000 | 0 | 0 / 0 | 448 / 495 | 6 / 8 | 1 / 2 | 16.738 / 0.937 = 0.781 + 0.156 | yes | |
-| 3d/orthographic | 10 | 0.999503 | 0 | 5 / 2 | 446 / 499 | 10 / 9 | 6 / 3 | 35.837 / 1.307 = 1.107 + 0.200 | yes | |
-| 3d/parenting | 30 | 0.999969 | 0 | 1 / 1 | 443 / 496 | 6 / 8 | 2 / 2 | 23.457 / 1.094 = 0.92 + 0.174 | yes | |
-| 3d/parenting | 60 | 0.999968 | 0 | 1 / 1 | 443 / 496 | 6 / 8 | 2 / 2 | 16.687 / 0.975 = 0.854 + 0.121 | yes | |
-| 2d/mesh2d | 10 | 0.999348 | 0 | 0 / 0 | 441 / 494 | 6 / 8 | 1 / 1 | 33.938 / 1.249 = 1.076 + 0.173 | yes | |
-| 2d/sprite | 10 | 0.998326 | 8 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 34.443 / 1.338 = 1.174 + 0.164 | yes | |
-| transforms/3d_rotation | 30 | 1.000000 | 0 | 1 / 1 | 442 / 495 | 6 / 8 | 2 / 2 | 23.477 / 1.095 = 0.93 + 0.165 | yes | |
-| transforms/3d_rotation | 60 | 1.000000 | 0 | 1 / 1 | 442 / 495 | 6 / 8 | 2 / 2 | 16.649 / 0.939 = 0.823 + 0.116 | yes | |
-| 2d/sprite_flipping | 10 | 0.998326 | 8 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 34.344 / 1.234 = 1.098 + 0.136 | yes | |
-| 2d/move_sprite | 120 | 0.998270 | 9 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 16.645 / 0.847 = 0.773 + 0.074 | yes | |
-| 2d/move_sprite | 30 | 0.998261 | 8 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 23.012 / 1.037 = 0.843 + 0.194 | yes | |
-| 2d/transparency_2d | 10 | 0.997674 | 5 | 0 / 0 | 443 / 496 | 5 / 7 | 1 / 1 | 34.576 / 1.21 = 1.074 + 0.136 | yes | |
-| transforms/translation | 180 | 1.000000 | 0 | 1 / 1 | 442 / 495 | 6 / 8 | 2 / 2 | 16.665 / 0.831 = 0.762 + 0.069 | yes | |
-| transforms/translation | 60 | 1.000000 | 0 | 1 / 1 | 442 / 495 | 6 / 8 | 2 / 2 | 20.048 / 0.912 = 0.804 + 0.108 | yes | |
-| transforms/scale | 300 | 1.000000 | 0 | 1 / 1 | 442 / 495 | 6 / 8 | 2 / 2 | 16.67 / 0.837 = 0.765 + 0.072 | yes | |
-| transforms/scale | 60 | 1.000000 | 0 | 1 / 1 | 442 / 495 | 6 / 8 | 2 / 2 | 20.098 / 0.92 = 0.807 + 0.113 | yes | |
-| 3d/texture | 10 | 0.999547 | 1 | 3 / 3 | 443 / 497 | 6 / 8 | 4 / 4 | 35.41 / 1.327 = 1.127 + 0.200 | yes | |
-| shader/animate_shader | 30 | 1.000000 | 0 | 0 / 0 | 447 / 494 | 6 / 8 | 1 / 2 | 22.794 / 0.944 = 0.834 + 0.110 | yes | |
-| shader/animate_shader | 60 | 1.000000 | 0 | 0 / 0 | 447 / 494 | 6 / 8 | 1 / 2 | 16.6 / 0.913 = 0.828 + 0.085 | yes | |
-| 2d/sprite_sheet | 30 | 0.998820 | 5 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 22.829 / 0.997 = 0.871 + 0.126 | yes | |
-| 2d/sprite_sheet | 60 | 0.999054 | 5 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 16.674 / 0.865 = 0.78 + 0.085 | yes | |
-| 3d/pbr | 30 | 0.997685 | 8 | 56 / 56 | 499 / 550 | 6 / 8 | 57 / 57 | 23.621 / 1.059 = 0.959 + 0.100 | yes | |
-| 3d/pbr | 60 | 0.997685 | 8 | 56 / 56 | 499 / 550 | 6 / 8 | 57 / 57 | 16.707 / 0.901 = 0.839 + 0.062 | yes | |
-| 3d/animated_material | 30 | 0.999892 | 0 | 9 / 9 | 449 / 502 | 6 / 8 | 10 / 19 | 23.431 / 1.385 = 1.008 + 0.377 | yes | |
-| 3d/animated_material | 60 | 0.999940 | 0 | 9 / 9 | 449 / 502 | 6 / 8 | 10 / 19 | 16.682 / 1.179 = 0.915 + 0.264 | yes | |
-| camera/pan_camera_controller | 10 | 0.996838 | 10 | 0 / 0 | 446 / 494 | 5 / 7 | 1 / 1 | 34.381 / 1.192 = 1.047 + 0.145 | yes | |
-| camera/camera_orbit | 10 | 0.999220 | 8 | 2 / 2 | 445 / 496 | 7 / 9 | 3 / 3 | 36.186 / 1.26 = 1.042 + 0.218 | yes | |
-| camera/projection_zoom | 30 | 0.998026 | 8 | 2 / 2 | 473 / 526 | 7 / 9 | 3 / 3 | 24.245 / 1.246 = 1.111 + 0.135 | yes | |
-| 2d/sprite_animation | 12 | 0.997217 | 9 | 0 / 0 | 443 / 495 | 5 / 7 | 1 / 1 | 32.015 / 1.148 = 0.986 + 0.162 | yes | |
-| 2d/sprite_animation | 30 | 0.997017 | 8 | 0 / 0 | 443 / 495 | 5 / 7 | 1 / 1 | 16.77 / 1.013 = 0.881 + 0.132 | yes | |
-| 2d/sprite_animation | 60 | 0.997099 | 8 | 0 / 0 | 443 / 495 | 5 / 7 | 1 / 1 | 16.673 / 0.892 = 0.8 + 0.092 | yes | |
-| 2d/sprite_tile | 30 | 0.998633 | 7 | 0 / 0 | 442 / 494 | 5 / 7 | 1 / 1 | 22.925 / 1.018 = 0.889 + 0.129 | yes | |
-| 2d/sprite_tile | 300 | 0.992213 | 7 | 0 / 0 | 442 / 494 | 5 / 7 | 1 / 1 | 16.666 / 0.83 = 0.771 + 0.059 | yes | |
-| 3d/vertex_colors | 10 | 0.999019 | 0 | 2 / 2 | 443 / 496 | 7 / 9 | 3 / 3 | 38.287 / 2.201 = 1.983 + 0.218 | yes | |
-| 3d/spherical_area_lights | 10 | 0.999738 | 0 | 7 / 2 | 453 / 506 | 7 / 9 | 8 / 3 | 35.843 / 1.733 = 1.533 + 0.200 | yes | |
-| 3d/fog_volumes | 10 | 0.995718 | 14 | 0 / 0 | 442 / 494 | 5 / 7 | 1 / 1 | 35.722 / 1.634 = 1.343 + 0.291 | yes | |
-| 3d/fog_volumes | 60 | 0.995939 | 4 | 0 / 0 | 442 / 494 | 5 / 7 | 1 / 1 | 16.679 / 1.328 = 1.197 + 0.131 | yes | |
-| 3d/bloom_3d | 10 | 0.996668 | 11 | 4 / 4 | 541 / 593 | 6 / 8 | 5 / 5 | 36.436 / 2.905 = 1.823 + 1.082 | yes | |
-| 3d/bloom_3d | 60 | 0.996631 | 12 | 4 / 4 | 541 / 593 | 6 / 8 | 5 / 5 | 16.689 / 2.036 = 1.426 + 0.610 | yes | |
-| transforms/transform | 10 | 0.999999 | 0 | 2 / 2 | 443 / 496 | 7 / 9 | 3 / 3 | 36.165 / 1.627 = 1.291 + 0.336 | yes | |
-| transforms/transform | 120 | 1.000000 | 0 | 2 / 2 | 443 / 496 | 7 / 9 | 3 / 3 | 16.675 / 0.924 = 0.798 + 0.126 | yes | |
-| 3d/transparency_3d | 10 | 0.990065 | 25 | 6 / 6 | 447 / 500 | 11 / 10 | 7 / 11 | 40.183 / 2.673 = 2.118 + 0.555 | no | pixels 0.990065, worst tile 25 |
-| 3d/transparency_3d | 90 | 0.998632 | 0 | 6 / 6 | 447 / 500 | 11 / 10 | 7 / 11 | 16.641 / 1.926 = 1.752 + 0.174 | yes | |
-| animation/eased_motion | 150 | 0.999822 | 0 | 2 / 2 | 443 / 496 | 7 / 9 | 3 / 3 | 16.657 / 1.597 = 1.521 + 0.076 | yes | |
-| animation/eased_motion | 240 | 0.999823 | 0 | 2 / 2 | 443 / 496 | 7 / 9 | 3 / 3 | 16.688 / 1.491 = 1.421 + 0.070 | yes | |
-| animation/eased_motion | 60 | 0.999824 | 0 | 2 / 2 | 443 / 496 | 7 / 9 | 3 / 3 | 20.197 / 1.716 = 1.578 + 0.138 | yes | |
-| animation/color_animation | 120 | 0.998717 | 1 | 0 / 0 | 446 / 499 | 5 / 13 | 1 / 1 | 16.651 / 0.884 = 0.796 + 0.088 | yes | |
-| animation/color_animation | 200 | 0.996870 | 4 | 0 / 0 | 446 / 499 | 5 / 13 | 1 / 1 | 16.676 / 0.858 = 0.786 + 0.072 | yes | |
-| animation/color_animation | 30 | 0.998699 | 2 | 0 / 0 | 446 / 499 | 5 / 13 | 1 / 1 | 23.043 / 1.056 = 0.904 + 0.152 | yes | |
-| 3d/rect_light | 10 | 0.998374 | 8 | 2 / 2 | 446 / 501 | 7 / 9 | 3 / 3 | 36.633 / 1.42 = 1.211 + 0.209 | yes | |
-| 3d/shadow_caster_receiver | 10 | 1.000000 | 0 | 4 / 4 | 446 / 499 | 8 / 9 | 5 / 5 | 36.431 / 1.848 = 1.639 + 0.209 | yes | |
-| 3d/spotlight | 10 | 0.997767 | 10 | 4 / 4 | 530 / 582 | 9 / 11 | 5 / 5 | 37.282 / 5.809 = 4.418 + 1.391 | yes | |
-| 3d/spotlight | 90 | 0.996452 | 10 | 4 / 4 | 530 / 582 | 9 / 11 | 5 / 5 | 16.657 / 4.722 = 4.071 + 0.651 | yes | |
-| transforms/align | 10 | 0.993011 | 11 | 5 / 5 | 453 / 512 | 10 / 12 | 6 / 6 | 36.88 / 2.632 = 2.396 + 0.236 | yes | |
-| transforms/align | 30 | 0.993011 | 11 | 5 / 5 | 453 / 512 | 10 / 12 | 6 / 6 | 16.675 / 1.928 = 1.796 + 0.132 | yes | |
-| 3d/3d_viewport_to_world | 10 | 0.998921 | 1 | 1 / 1 | 442 / 495 | 6 / 8 | 2 / 2 | 16.636 / 1.25 = 0.995 + 0.255 | yes | |
-| 3d/3d_viewport_to_world | 5 | 0.998921 | 1 | 1 / 1 | 442 / 495 | 6 / 8 | 2 / 2 | 51.852 / 2.098 = 1.915 + 0.183 | yes | |
-| 3d/atmospheric_fog | 10 | 0.998688 | 9 | 2 / 2 | 449 / 504 | 7 / 9 | 3 / 3 | 16.376 / 1.94 = 1.713 + 0.227 | yes | |
-| 3d/atmospheric_fog | 5 | 0.998688 | 9 | 2 / 2 | 449 / 504 | 7 / 9 | 3 / 3 | 52.938 / 2.981 = 2.281 + 0.700 | yes | |
-| 2d/rotate_to_cursor | 10 | 0.999835 | 3 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 16.745 / 1.364 = 1.237 + 0.127 | yes | |
-| 2d/rotate_to_cursor | 5 | 0.999835 | 3 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 48.804 / 2.047 = 1.864 + 0.183 | yes | |
-| movement/smooth_follow | 120 | 0.998129 | 0 | 3 / 3 | 448 / 497 | 8 / 9 | 4 / 4 | 16.667 / 1.646 = 1.515 + 0.131 | yes | |
-| movement/smooth_follow | 30 | 0.998157 | 0 | 3 / 3 | 448 / 497 | 8 / 9 | 4 / 4 | 23.464 / 1.861 = 1.648 + 0.213 | yes | |
-| 3d/mesh_ray_cast | 300 | 0.999715 | 1 | 1 / 1 | 447 / 4658 | 6 / 8 | 2 / 2 | 17.406 / 5.1 = 1.336 + 3.764 | yes | |
-| 3d/mesh_ray_cast | 900 | 0.999608 | 1 | 1 / 1 | 447 / 44258 | 6 / 8 | 2 / 2 | 16.665 / 4.966 = 3.53 + 1.436 | yes | |
-| 2d/mesh2d_alpha_mode | 10 | 0.989355 | 8 | 0 / 0 | 446 / 499 | 6 / 13 | 1 / 1 | 16.696 / 1.177 = 1.041 + 0.136 | yes | |
-| 2d/mesh2d_alpha_mode | 5 | 0.989355 | 8 | 0 / 0 | 446 / 499 | 6 / 13 | 1 / 1 | 50.322 / 2.189 = 1.972 + 0.217 | yes | |
-| 3d/lightmaps | 10 | 1.000000 | 0 | 6 / 6 | 453 / 506 | 11 / 13 | 6 / 10 | 16.629 / 2.176 = 1.912 + 0.264 | yes | |
-| 3d/lightmaps | 5 | 1.000000 | 0 | 6 / 6 | 453 / 506 | 11 / 13 | 6 / 10 | 58.102 / 2.333 = 2.133 + 0.200 | yes | |
-| ui/styling/transparency_ui | 10 | 0.999700 | 3 | 0 / 0 | 445 / 492 | 5 / 7 | 1 / 1 | 16.572 / 1.13 = 1.003 + 0.127 | yes | |
-| ui/styling/transparency_ui | 5 | 0.999700 | 3 | 0 / 0 | 445 / 492 | 5 / 7 | 1 / 1 | 49.637 / 1.925 = 1.742 + 0.183 | yes | |
-| ui/layout/fixed_node | 10 | 1.000000 | 0 | 0 / 0 | 444 / 492 | 5 / 7 | 1 / 1 | 16.265 / 1.191 = 1.036 + 0.155 | yes | |
-| ui/layout/fixed_node | 5 | 1.000000 | 0 | 0 / 0 | 444 / 492 | 5 / 7 | 1 / 1 | 49.648 / 1.995 = 1.795 + 0.200 | yes | |
-| ui/images/image_node | 10 | 0.999893 | 1 | 0 / 0 | 442 / 492 | 5 / 7 | 1 / 1 | 16.32 / 1.2 = 1.055 + 0.145 | yes | |
-| ui/images/image_node | 5 | 0.999893 | 1 | 0 / 0 | 442 / 492 | 5 / 7 | 1 / 1 | 48.238 / 2.017 = 1.834 + 0.183 | yes | |
-| ui/text/font_weights | 10 | 0.990279 | 17 | 0 / 0 | 454 / 492 | 5 / 7 | 1 / 1 | 16.718 / 1.104 = 0.968 + 0.136 | yes | |
-| ui/text/font_weights | 5 | 0.990279 | 17 | 0 / 0 | 454 / 492 | 5 / 7 | 1 / 1 | 49.234 / 2.161 = 2.011 + 0.150 | yes | |
-| ui/text/font_variations | 10 | 0.992845 | 21 | 0 / 0 | 452 / 492 | 5 / 7 | 1 / 1 | 16.423 / 1.024 = 0.897 + 0.127 | yes | |
-| ui/text/font_variations | 5 | 0.992845 | 21 | 0 / 0 | 452 / 492 | 5 / 7 | 1 / 1 | 49.923 / 1.854 = 1.687 + 0.167 | yes | |
-| ui/text/text_background_colors | 10 | 0.997735 | 8 | 0 / 0 | 505 / 492 | 5 / 7 | 1 / 1 | 16.75 / 1.245 = 1.09 + 0.155 | yes | |
-| ui/text/text_background_colors | 5 | 0.997735 | 8 | 0 / 0 | 505 / 492 | 5 / 7 | 1 / 1 | 49.491 / 2.123 = 1.973 + 0.150 | yes | |
-| ui/text/strikethrough_and_underline | 10 | 0.990152 | 14 | 0 / 0 | 454 / 492 | 5 / 7 | 1 / 1 | 16.37 / 0.994 = 0.885 + 0.109 | yes | |
-| ui/text/strikethrough_and_underline | 5 | 0.990152 | 14 | 0 / 0 | 454 / 492 | 5 / 7 | 1 / 1 | 51.356 / 1.954 = 1.787 + 0.167 | yes | |
-| ui/scroll_and_overflow/overflow | 10 | 0.998143 | 5 | 0 / 0 | 461 / 492 | 5 / 7 | 1 / 1 | 16.737 / 1.58 = 1.407 + 0.173 | yes | |
-| ui/scroll_and_overflow/overflow | 5 | 0.998143 | 5 | 0 / 0 | 461 / 492 | 5 / 7 | 1 / 1 | 48.451 / 1.909 = 1.759 + 0.150 | yes | |
-| ui/images/ui_texture_atlas | 10 | 0.999601 | 7 | 0 / 0 | 445 / 492 | 5 / 7 | 1 / 1 | 16.722 / 1.119 = 0.983 + 0.136 | yes | |
-| ui/images/ui_texture_atlas | 5 | 0.999601 | 7 | 0 / 0 | 445 / 492 | 5 / 7 | 1 / 1 | 50.405 / 1.882 = 1.732 + 0.150 | yes | |
-| 2d/mesh2d_vertex_color_texture | 10 | 0.998651 | 6 | 0 / 0 | 442 / 495 | 6 / 9 | 1 / 1 | 60.317 / 1.195 = 1.05 + 0.145 | yes | |
+| stress_tests/many_cubes | 30 | 0.995176 | 1 | 2 / 2 | 10444 / 10495 | 7 / 9 | 3 / 2 | 12.5 / 2.569 = 1.959 + 0.610 | yes | |
+| stress_tests/many_cubes | 60 | 0.995154 | 1 | 2 / 2 | 10444 / 10495 | 7 / 9 | 3 / 2 | 2.142 / 2.03 = 1.541 + 0.489 | yes | |
+| 3d/3d_scene | 10 | 0.999998 | 0 | 2 / 2 | 443 / 498 | 7 / 9 | 3 / 3 | 16.678 / 2.236 = 2.018 + 0.218 | yes | |
+| 3d/3d_scene | 5 | 0.999998 | 0 | 2 / 2 | 443 / 498 | 7 / 9 | 3 / 3 | 53.981 / 3.201 = 3.034 + 0.167 | yes | |
+| stress_tests/many_lights | 30 | 0.999957 | 0 | 1 / 1 | 100443 / 100495 | 7 / 9 | 3 / 3 | 14.545 / 6.501 = 4.072 + 2.429 | yes | |
+| stress_tests/many_lights | 60 | 0.999954 | 0 | 1 / 1 | 100445 / 100495 | 7 / 9 | 3 / 3 | 2.508 / 6.459 = 4.384 + 2.075 | no | frame 6.459 ms (4.384 update + 2.075 React step) vs 2.508 ms |
+| stress_tests/many_foxes | 30 | 0.989592 | 3 | 2 / 2 | 30464 / 31495 | 7 / 9 | 3 / 3 | 15.286 / 18.614 = 9.108 + 9.506 | yes | |
+| stress_tests/many_foxes | 60 | 0.990304 | 3 | 2 / 2 | 30464 / 31495 | 7 / 9 | 3 / 3 | 3.392 / 19.311 = 9.247 + 10.064 | no | frame 19.311 ms (9.247 update + 10.064 React step) vs 3.392 ms |
+| animation/animated_mesh | 30 | 0.996636 | 1 | 2 / 2 | 472 / 526 | 7 / 9 | 3 / 3 | 24.856 / 2.716 = 2.471 + 0.245 | yes | |
+| animation/animated_mesh | 60 | 0.996594 | 1 | 2 / 2 | 472 / 526 | 7 / 9 | 3 / 3 | 16.679 / 1.586 = 1.452 + 0.134 | yes | |
+| shader/extended_material | 30 | 1.000000 | 0 | 0 / 0 | 448 / 495 | 6 / 8 | 1 / 2 | 24.291 / 1.306 = 0.996 + 0.310 | yes | |
+| shader/extended_material | 60 | 1.000000 | 0 | 0 / 0 | 448 / 495 | 6 / 8 | 1 / 2 | 16.721 / 1.159 = 0.952 + 0.207 | yes | |
+| 3d/orthographic | 10 | 0.999503 | 0 | 5 / 2 | 446 / 499 | 10 / 9 | 6 / 3 | 37.64 / 1.748 = 1.357 + 0.391 | yes | |
+| 3d/parenting | 30 | 0.999969 | 0 | 1 / 1 | 443 / 496 | 6 / 8 | 2 / 2 | 23.781 / 1.325 = 1.125 + 0.200 | yes | |
+| 3d/parenting | 60 | 0.999968 | 0 | 1 / 1 | 443 / 496 | 6 / 8 | 2 / 2 | 16.698 / 1.222 = 1.068 + 0.154 | yes | |
+| 2d/mesh2d | 10 | 0.999348 | 0 | 0 / 0 | 441 / 494 | 6 / 8 | 1 / 1 | 35.986 / 1.36 = 1.215 + 0.145 | yes | |
+| 2d/sprite | 10 | 0.998326 | 8 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 35.342 / 1.061 = 0.916 + 0.145 | yes | |
+| transforms/3d_rotation | 30 | 1.000000 | 0 | 1 / 1 | 442 / 495 | 6 / 8 | 2 / 2 | 23.465 / 1.097 = 0.862 + 0.235 | yes | |
+| transforms/3d_rotation | 60 | 1.000000 | 0 | 1 / 1 | 442 / 495 | 6 / 8 | 2 / 2 | 16.621 / 0.931 = 0.787 + 0.144 | yes | |
+| 2d/sprite_flipping | 10 | 0.998326 | 8 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 34.496 / 1.312 = 1.157 + 0.155 | yes | |
+| 2d/move_sprite | 120 | 0.998270 | 9 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 16.662 / 0.817 = 0.753 + 0.064 | yes | |
+| 2d/move_sprite | 30 | 0.998261 | 8 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 22.994 / 1.019 = 0.89 + 0.129 | yes | |
+| 2d/transparency_2d | 10 | 0.997674 | 5 | 0 / 0 | 443 / 496 | 5 / 7 | 1 / 1 | 34.703 / 1.44 = 1.304 + 0.136 | yes | |
+| transforms/translation | 180 | 1.000000 | 0 | 1 / 1 | 442 / 495 | 6 / 8 | 2 / 2 | 16.677 / 0.825 = 0.739 + 0.086 | yes | |
+| transforms/translation | 60 | 1.000000 | 0 | 1 / 1 | 442 / 495 | 6 / 8 | 2 / 2 | 20.078 / 1.044 = 0.9 + 0.144 | yes | |
+| transforms/scale | 300 | 1.000000 | 0 | 1 / 1 | 442 / 495 | 6 / 8 | 2 / 2 | 16.667 / 2.237 = 2.124 + 0.113 | yes | |
+| transforms/scale | 60 | 1.000000 | 0 | 1 / 1 | 442 / 495 | 6 / 8 | 2 / 2 | 20.461 / 2.539 = 2.096 + 0.443 | yes | |
+| 3d/texture | 10 | 0.999547 | 1 | 3 / 3 | 443 / 497 | 6 / 8 | 4 / 4 | 45.674 / 2.587 = 2.132 + 0.455 | yes | |
+| shader/animate_shader | 30 | 1.000000 | 0 | 0 / 0 | 447 / 494 | 6 / 8 | 1 / 2 | 26.573 / 1.881 = 1.694 + 0.187 | yes | |
+| shader/animate_shader | 60 | 1.000000 | 0 | 0 / 0 | 447 / 494 | 6 / 8 | 1 / 2 | 16.702 / 1.725 = 1.551 + 0.174 | yes | |
+| 2d/sprite_sheet | 30 | 0.998820 | 5 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 24.745 / 1.573 = 1.402 + 0.171 | yes | |
+| 2d/sprite_sheet | 60 | 0.999054 | 5 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 16.64 / 1.529 = 1.377 + 0.152 | yes | |
+| 3d/pbr | 30 | 0.997685 | 8 | 56 / 56 | 499 / 550 | 6 / 8 | 57 / 57 | 24.914 / 1.709 = 1.609 + 0.100 | yes | |
+| 3d/pbr | 60 | 0.997685 | 8 | 56 / 56 | 499 / 550 | 6 / 8 | 57 / 57 | 16.655 / 1.575 = 1.501 + 0.074 | yes | |
+| 3d/animated_material | 30 | 0.999892 | 0 | 9 / 9 | 449 / 502 | 6 / 8 | 10 / 19 | 24.825 / 1.589 = 1.208 + 0.381 | yes | |
+| 3d/animated_material | 60 | 0.999940 | 0 | 9 / 9 | 449 / 502 | 6 / 8 | 10 / 19 | 16.67 / 1.469 = 1.09 + 0.379 | yes | |
+| camera/pan_camera_controller | 10 | 0.996838 | 10 | 0 / 0 | 446 / 494 | 5 / 7 | 1 / 1 | 37.744 / 1.414 = 1.269 + 0.145 | yes | |
+| camera/camera_orbit | 10 | 0.999220 | 8 | 2 / 2 | 445 / 496 | 7 / 9 | 3 / 3 | 38.223 / 1.445 = 1.227 + 0.218 | yes | |
+| camera/projection_zoom | 30 | 0.998026 | 8 | 2 / 2 | 473 / 526 | 7 / 9 | 3 / 3 | 25.201 / 1.527 = 1.392 + 0.135 | yes | |
+| 2d/sprite_animation | 12 | 0.997217 | 9 | 0 / 0 | 443 / 495 | 5 / 7 | 1 / 1 | 34.237 / 1.457 = 1.219 + 0.238 | yes | |
+| 2d/sprite_animation | 30 | 0.997017 | 8 | 0 / 0 | 443 / 495 | 5 / 7 | 1 / 1 | 16.656 / 1.181 = 1.026 + 0.155 | yes | |
+| 2d/sprite_animation | 60 | 0.997099 | 8 | 0 / 0 | 443 / 495 | 5 / 7 | 1 / 1 | 16.664 / 1.274 = 1.177 + 0.097 | yes | |
+| 2d/sprite_tile | 30 | 0.998633 | 7 | 0 / 0 | 442 / 494 | 5 / 7 | 1 / 1 | 23.158 / 1.028 = 0.876 + 0.152 | yes | |
+| 2d/sprite_tile | 300 | 0.992213 | 7 | 0 / 0 | 442 / 494 | 5 / 7 | 1 / 1 | 16.664 / 0.791 = 0.742 + 0.049 | yes | |
+| 3d/vertex_colors | 10 | 0.999019 | 0 | 2 / 2 | 443 / 496 | 7 / 9 | 3 / 3 | 38.627 / 2.182 = 1.946 + 0.236 | yes | |
+| 3d/spherical_area_lights | 10 | 0.999738 | 0 | 7 / 2 | 453 / 506 | 7 / 9 | 8 / 3 | 38.313 / 1.702 = 1.484 + 0.218 | yes | |
+| 3d/fog_volumes | 10 | 0.995718 | 14 | 0 / 0 | 442 / 494 | 5 / 7 | 1 / 1 | 36.959 / 1.943 = 1.625 + 0.318 | yes | |
+| 3d/fog_volumes | 60 | 0.995939 | 4 | 0 / 0 | 442 / 494 | 5 / 7 | 1 / 1 | 16.661 / 1.699 = 1.579 + 0.120 | yes | |
+| 3d/bloom_3d | 10 | 0.996668 | 11 | 4 / 4 | 541 / 593 | 6 / 8 | 5 / 5 | 36.41 / 3.048 = 1.939 + 1.109 | yes | |
+| 3d/bloom_3d | 60 | 0.996631 | 12 | 4 / 4 | 541 / 593 | 6 / 8 | 5 / 5 | 16.665 / 2.061 = 1.44 + 0.621 | yes | |
+| transforms/transform | 10 | 0.999999 | 0 | 2 / 2 | 443 / 496 | 7 / 9 | 3 / 3 | 36.37 / 1.44 = 1.113 + 0.327 | yes | |
+| transforms/transform | 120 | 1.000000 | 0 | 2 / 2 | 443 / 496 | 7 / 9 | 3 / 3 | 16.672 / 0.9 = 0.756 + 0.144 | yes | |
+| 3d/transparency_3d | 10 | 0.990065 | 25 | 6 / 6 | 447 / 500 | 11 / 10 | 7 / 11 | 40.265 / 2.787 = 2.205 + 0.582 | no | pixels 0.990065, worst tile 25 |
+| 3d/transparency_3d | 90 | 0.998632 | 0 | 6 / 6 | 447 / 500 | 11 / 10 | 7 / 11 | 16.667 / 2.213 = 2.04 + 0.173 | yes | |
+| animation/eased_motion | 150 | 0.999822 | 0 | 2 / 2 | 443 / 496 | 7 / 9 | 3 / 3 | 16.65 / 1.531 = 1.456 + 0.075 | yes | |
+| animation/eased_motion | 240 | 0.999823 | 0 | 2 / 2 | 443 / 496 | 7 / 9 | 3 / 3 | 16.683 / 1.529 = 1.463 + 0.066 | yes | |
+| animation/eased_motion | 60 | 0.999824 | 0 | 2 / 2 | 443 / 496 | 7 / 9 | 3 / 3 | 20.28 / 1.688 = 1.568 + 0.120 | yes | |
+| animation/color_animation | 120 | 0.998717 | 1 | 0 / 0 | 446 / 499 | 5 / 13 | 1 / 1 | 16.675 / 0.88 = 0.792 + 0.088 | yes | |
+| animation/color_animation | 200 | 0.996870 | 4 | 0 / 0 | 446 / 499 | 5 / 13 | 1 / 1 | 16.645 / 0.922 = 0.85 + 0.072 | yes | |
+| animation/color_animation | 30 | 0.998699 | 2 | 0 / 0 | 446 / 499 | 5 / 13 | 1 / 1 | 23.05 / 1.144 = 0.973 + 0.171 | yes | |
+| 3d/rect_light | 10 | 0.998374 | 8 | 2 / 2 | 446 / 501 | 7 / 9 | 3 / 3 | 37.217 / 1.53 = 1.321 + 0.209 | yes | |
+| 3d/shadow_caster_receiver | 10 | 1.000000 | 0 | 4 / 4 | 446 / 499 | 8 / 9 | 5 / 5 | 35.815 / 1.794 = 1.539 + 0.255 | yes | |
+| 3d/spotlight | 10 | 0.997767 | 10 | 4 / 4 | 530 / 582 | 9 / 11 | 5 / 5 | 37.777 / 5.88 = 4.362 + 1.518 | yes | |
+| 3d/spotlight | 90 | 0.996452 | 10 | 4 / 4 | 530 / 582 | 9 / 11 | 5 / 5 | 16.685 / 4.571 = 3.945 + 0.626 | yes | |
+| transforms/align | 10 | 0.993011 | 11 | 5 / 5 | 453 / 512 | 10 / 12 | 6 / 6 | 37.027 / 2.793 = 2.566 + 0.227 | yes | |
+| transforms/align | 30 | 0.993011 | 11 | 5 / 5 | 453 / 512 | 10 / 12 | 6 / 6 | 16.576 / 1.989 = 1.841 + 0.148 | yes | |
+| 3d/3d_viewport_to_world | 10 | 0.998921 | 1 | 1 / 1 | 442 / 495 | 6 / 8 | 2 / 2 | 16.678 / 1.274 = 1.047 + 0.227 | yes | |
+| 3d/3d_viewport_to_world | 5 | 0.998921 | 1 | 1 / 1 | 442 / 495 | 6 / 8 | 2 / 2 | 50.541 / 2.178 = 1.978 + 0.200 | yes | |
+| 3d/atmospheric_fog | 10 | 0.998688 | 9 | 2 / 2 | 449 / 504 | 7 / 9 | 3 / 3 | 16.849 / 2.361 = 2.116 + 0.245 | yes | |
+| 3d/atmospheric_fog | 5 | 0.998688 | 9 | 2 / 2 | 449 / 504 | 7 / 9 | 3 / 3 | 52.768 / 2.8 = 2.45 + 0.350 | yes | |
+| 2d/rotate_to_cursor | 10 | 0.999835 | 3 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 16.603 / 1.121 = 0.994 + 0.127 | yes | |
+| 2d/rotate_to_cursor | 5 | 0.999835 | 3 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 49.514 / 2.092 = 1.925 + 0.167 | yes | |
+| movement/smooth_follow | 120 | 0.998129 | 0 | 3 / 3 | 448 / 497 | 8 / 9 | 4 / 4 | 16.68 / 1.447 = 1.331 + 0.116 | yes | |
+| movement/smooth_follow | 30 | 0.998157 | 0 | 3 / 3 | 448 / 497 | 8 / 9 | 4 / 4 | 23.479 / 1.867 = 1.654 + 0.213 | yes | |
+| 3d/mesh_ray_cast | 300 | 0.999715 | 1 | 1 / 1 | 447 / 4658 | 6 / 8 | 2 / 2 | 17.383 / 5.408 = 1.523 + 3.885 | yes | |
+| 3d/mesh_ray_cast | 900 | 0.999608 | 1 | 1 / 1 | 447 / 44258 | 6 / 8 | 2 / 2 | 16.664 / 4.882 = 3.464 + 1.418 | yes | |
+| 2d/mesh2d_alpha_mode | 10 | 0.989355 | 8 | 0 / 0 | 446 / 499 | 6 / 13 | 1 / 1 | 16.51 / 1.327 = 1.2 + 0.127 | yes | |
+| 2d/mesh2d_alpha_mode | 5 | 0.989355 | 8 | 0 / 0 | 446 / 499 | 6 / 13 | 1 / 1 | 49.919 / 2.267 = 2.1 + 0.167 | yes | |
+| 3d/lightmaps | 10 | 1.000000 | 0 | 6 / 6 | 453 / 506 | 11 / 13 | 6 / 10 | 16.538 / 1.727 = 1.5 + 0.227 | yes | |
+| 3d/lightmaps | 5 | 1.000000 | 0 | 6 / 6 | 453 / 506 | 11 / 13 | 6 / 10 | 58.916 / 2.25 = 2.05 + 0.200 | yes | |
+| ui/styling/transparency_ui | 10 | 0.999700 | 3 | 0 / 0 | 445 / 492 | 5 / 7 | 1 / 1 | 17.024 / 1.175 = 1.039 + 0.136 | yes | |
+| ui/styling/transparency_ui | 5 | 0.999700 | 3 | 0 / 0 | 445 / 492 | 5 / 7 | 1 / 1 | 49.404 / 2.048 = 1.865 + 0.183 | yes | |
+| ui/layout/fixed_node | 10 | 1.000000 | 0 | 0 / 0 | 444 / 492 | 5 / 7 | 1 / 1 | 16.883 / 1.078 = 0.878 + 0.200 | yes | |
+| ui/layout/fixed_node | 5 | 1.000000 | 0 | 0 / 0 | 444 / 492 | 5 / 7 | 1 / 1 | 49.681 / 1.923 = 1.756 + 0.167 | yes | |
+| ui/text/font_weights | 10 | 0.990279 | 17 | 0 / 0 | 454 / 492 | 5 / 7 | 1 / 1 | 16.429 / 0.994 = 0.876 + 0.118 | yes | |
+| ui/text/font_weights | 5 | 0.990279 | 17 | 0 / 0 | 454 / 492 | 5 / 7 | 1 / 1 | 49.218 / 2.032 = 1.849 + 0.183 | yes | |
+| ui/text/font_variations | 10 | 0.992845 | 21 | 0 / 0 | 452 / 492 | 5 / 7 | 1 / 1 | 16.643 / 1.185 = 1.058 + 0.127 | yes | |
+| ui/text/font_variations | 5 | 0.992845 | 21 | 0 / 0 | 452 / 492 | 5 / 7 | 1 / 1 | 53.311 / 1.957 = 1.757 + 0.200 | yes | |
+| ui/text/text_background_colors | 10 | 0.997735 | 8 | 0 / 0 | 505 / 492 | 5 / 7 | 1 / 1 | 16.694 / 1.113 = 0.986 + 0.127 | yes | |
+| ui/text/text_background_colors | 5 | 0.997735 | 8 | 0 / 0 | 505 / 492 | 5 / 7 | 1 / 1 | 52.009 / 2.098 = 1.965 + 0.133 | yes | |
+| ui/text/strikethrough_and_underline | 10 | 0.990152 | 14 | 0 / 0 | 454 / 492 | 5 / 7 | 1 / 1 | 16.545 / 1.172 = 0.899 + 0.273 | yes | |
+| ui/text/strikethrough_and_underline | 5 | 0.990152 | 14 | 0 / 0 | 454 / 492 | 5 / 7 | 1 / 1 | 51.687 / 2.566 = 2.149 + 0.417 | yes | |
+| ui/scroll_and_overflow/overflow | 10 | 0.998143 | 5 | 0 / 0 | 461 / 492 | 5 / 7 | 1 / 1 | 16.865 / 1.078 = 0.878 + 0.200 | yes | |
+| ui/scroll_and_overflow/overflow | 5 | 0.998143 | 5 | 0 / 0 | 461 / 492 | 5 / 7 | 1 / 1 | 48.936 / 2.246 = 2.079 + 0.167 | yes | |
+| 2d/mesh2d_vertex_color_texture | 10 | 0.998651 | 6 | 0 / 0 | 442 / 495 | 6 / 9 | 1 / 1 | 36.167 / 1.134 = 0.979 + 0.155 | yes | |
+| 2d/mesh2d_repeated_texture | 10 | 0.991205 | 17 | 0 / 0 | 437 / 496 | 8 / 10 | 1 / 1 | 27.651 / 1.704 = 1.477 + 0.227 | yes | |
+| ui/layout/flex_layout | 10 | 0.990851 | 8 | 0 / 0 | 602 / 492 | 5 / 7 | 1 / 1 | 34.72 / 0.976 = 0.894 + 0.082 | yes | |
+| ui/scroll_and_overflow/overflow_clip_margin | 10 | 0.996801 | 9 | 0 / 0 | 465 / 492 | 5 / 7 | 1 / 1 | 34.201 / 1.141 = 0.959 + 0.182 | yes | |
+| ui/images/image_node | 10 | 0.999893 | 1 | 0 / 0 | 442 / 492 | 5 / 7 | 1 / 1 | 16.562 / 1.147 = 1.002 + 0.145 | yes | |
+| ui/images/image_node | 5 | 0.999893 | 1 | 0 / 0 | 442 / 492 | 5 / 7 | 1 / 1 | 48.07 / 1.966 = 1.766 + 0.200 | yes | |
+| ui/images/ui_texture_atlas | 10 | 0.999601 | 7 | 0 / 0 | 445 / 492 | 5 / 7 | 1 / 1 | 16.378 / 0.959 = 0.832 + 0.127 | yes | |
+| ui/images/ui_texture_atlas | 5 | 0.999601 | 7 | 0 / 0 | 445 / 492 | 5 / 7 | 1 / 1 | 48.378 / 2.164 = 1.981 + 0.183 | yes | |
+| ui/images/ui_texture_slice | 10 | 0.998957 | 8 | 0 / 0 | 447 / 492 | 5 / 7 | 1 / 1 | 34.134 / 1.088 = 0.943 + 0.145 | yes | |
+| ui/images/ui_texture_slice_flip_and_tile | 10 | 1.000000 | 0 | 0 / 0 | 461 / 492 | 5 / 7 | 1 / 1 | 34.186 / 1.095 = 0.895 + 0.200 | yes | |
## Excluded
diff --git a/docs/bevy-parity/results.jsonl b/docs/bevy-parity/results.jsonl
index b640b8dc..9a35d988 100644
--- a/docs/bevy-parity/results.jsonl
+++ b/docs/bevy-parity/results.jsonl
@@ -1,101 +1,106 @@
{"example":"3d/rotate_environment_map","frame":5,"ssim":0.999453,"tile":1,"bevy":{"batch_keys":1,"entities":442,"extents":["0.9945 1.0000 1.0000"],"frame":5,"frame_ms":84.046,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":12,"entities":497,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.9945 1.0000 1.0000"],"frame_ms":5.209,"step_ms":1.533,"cost_ms":6.742},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
{"example":"3d/rotate_environment_map","frame":60,"ssim":0.999279,"tile":1,"bevy":{"batch_keys":1,"entities":442,"extents":["0.9945 1.0000 1.0000"],"frame":60,"frame_ms":3.628,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":67,"entities":497,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.9945 1.0000 1.0000"],"frame_ms":2.733,"step_ms":0.466,"cost_ms":3.199},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"stress_tests/many_cubes","frame":30,"ssim":0.995176,"tile":1,"bevy":{"batch_keys":2,"entities":10444,"extents":["0.3620 0.3620 0.3620","550.0000 550.0000 550.0000"],"frame":30,"frame_ms":11.411,"materials":3,"mesh_entities":10001,"meshes":7,"other_material":0,"visible":729},"raea":{"frame":37,"entities":10495,"mesh_entities":10001,"visible":729,"meshes":9,"materials":2,"batch_keys":2,"other_material":0,"extents":["0.3620 0.3620 0.3620","550.0000 550.0000 550.0000"],"frame_ms":1.624,"step_ms":0.606,"cost_ms":2.23},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"stress_tests/many_cubes","frame":60,"ssim":0.995154,"tile":1,"bevy":{"batch_keys":2,"entities":10444,"extents":["0.3620 0.3620 0.3620","550.0000 550.0000 550.0000"],"frame":60,"frame_ms":1.686,"materials":3,"mesh_entities":10001,"meshes":7,"other_material":0,"visible":734},"raea":{"frame":67,"entities":10495,"mesh_entities":10001,"visible":733,"meshes":9,"materials":2,"batch_keys":2,"other_material":0,"extents":["0.3620 0.3620 0.3620","550.0000 550.0000 550.0000"],"frame_ms":1.434,"step_ms":0.434,"cost_ms":1.868},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/3d_scene","frame":10,"ssim":0.999998,"tile":0,"bevy":{"batch_keys":2,"entities":443,"extents":["0.5000 0.5000 0.5000","4.0000 4.0000 0.0000"],"frame":10,"frame_ms":16.925,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":17,"entities":498,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["0.5000 0.5000 0.5000","4.0000 4.0000 0.0000"],"frame_ms":1.8,"step_ms":0.191,"cost_ms":1.991},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/3d_scene","frame":5,"ssim":0.999998,"tile":0,"bevy":{"batch_keys":2,"entities":443,"extents":["0.5000 0.5000 0.5000","4.0000 4.0000 0.0000"],"frame":5,"frame_ms":52.554,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":12,"entities":498,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["0.5000 0.5000 0.5000","4.0000 4.0000 0.0000"],"frame_ms":2.854,"step_ms":0.183,"cost_ms":3.037},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"stress_tests/many_lights","frame":30,"ssim":0.999957,"tile":0,"bevy":{"batch_keys":1,"entities":100443,"extents":["49.9006 50.0000 50.0000"],"frame":30,"frame_ms":14.486,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":1},"raea":{"frame":37,"entities":100495,"mesh_entities":2,"visible":1,"meshes":9,"materials":3,"batch_keys":1,"other_material":0,"extents":["49.9006 50.0000 50.0000"],"frame_ms":4.017,"step_ms":2.071,"cost_ms":6.088},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"stress_tests/many_lights","frame":60,"ssim":0.999954,"tile":0,"bevy":{"batch_keys":1,"entities":100445,"extents":["49.9006 50.0000 50.0000"],"frame":60,"frame_ms":2.5,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":1},"raea":{"frame":67,"entities":100495,"mesh_entities":2,"visible":1,"meshes":9,"materials":3,"batch_keys":1,"other_material":0,"extents":["49.9006 50.0000 50.0000"],"frame_ms":3.702,"step_ms":1.736,"cost_ms":5.438},"pixels":true,"draws":true,"time":false,"pass":false,"why":"frame 5.438 ms (3.702 update + 1.736 React step) vs 2.5 ms"}
-{"example":"stress_tests/many_foxes","frame":30,"ssim":0.989592,"tile":3,"bevy":{"batch_keys":2,"entities":30464,"extents":["17.4810 42.8200 84.6165","2500.0000 0.0000 2500.0000","50.9020 42.8200 89.1329","54.3371 42.8200 89.5665","81.3309 42.8200 92.9734","85.2965 42.8200 93.4739","94.6316 42.8200 94.6520","94.6316 42.8200 94.6521"],"frame":30,"frame_ms":13.802,"materials":3,"mesh_entities":1001,"meshes":7,"other_material":0,"visible":1001},"raea":{"frame":39,"entities":31495,"mesh_entities":1001,"visible":1001,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["17.4809 42.8200 84.6165","2500.0000 0.0000 2500.0000","50.9021 42.8200 89.1329","50.9021 42.8200 89.1330","54.3371 42.8200 89.5665","81.3310 42.8200 92.9734","85.2964 42.8200 93.4738","94.6316 42.8200 94.6520"],"frame_ms":8.34,"step_ms":9.594,"cost_ms":17.934},"pixels":true,"draws":true,"time":false,"pass":false,"why":"frame 17.934 ms (8.34 update + 9.594 React step) vs 13.802 ms"}
-{"example":"stress_tests/many_foxes","frame":60,"ssim":0.990304,"tile":3,"bevy":{"batch_keys":2,"entities":30464,"extents":["23.6615 34.9370 84.2011","23.6615 34.9370 84.2012","2500.0000 0.0000 2500.0000","78.2183 34.9370 91.5996","80.4108 34.9370 91.8799","84.3248 34.9370 92.3804","86.0376 34.9370 92.5995","86.0377 34.9371 92.5995"],"frame":60,"frame_ms":2.918,"materials":3,"mesh_entities":1001,"meshes":7,"other_material":0,"visible":1001},"raea":{"frame":69,"entities":31495,"mesh_entities":1001,"visible":1001,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["21.9974 34.9370 83.6309","23.6613 34.9370 84.2011","2500.0000 0.0000 2500.0000","78.2186 34.9370 91.5996","80.4110 34.9370 91.8800","84.3247 34.9370 92.3804","86.0374 34.9370 92.5994","86.0374 34.9371 92.5994"],"frame_ms":8.181,"step_ms":9.241,"cost_ms":17.422},"pixels":true,"draws":true,"time":false,"pass":false,"why":"frame 17.422 ms (8.181 update + 9.241 React step) vs 2.918 ms"}
-{"example":"animation/animated_mesh","frame":30,"ssim":0.996636,"tile":1,"bevy":{"batch_keys":2,"entities":472,"extents":["15.4187 42.8200 84.0474","250000.0000 0.0000 250000.0000"],"frame":30,"frame_ms":24.321,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":40,"entities":526,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["15.4187 42.8200 84.0474","250000.0000 0.0000 250000.0000"],"frame_ms":1.629,"step_ms":0.168,"cost_ms":1.797},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"animation/animated_mesh","frame":60,"ssim":0.996594,"tile":1,"bevy":{"batch_keys":2,"entities":472,"extents":["19.9546 34.9370 82.9540","250000.0000 0.0000 250000.0000"],"frame":60,"frame_ms":16.634,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":70,"entities":526,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["19.9546 34.9370 82.9540","250000.0000 0.0000 250000.0000"],"frame_ms":1.355,"step_ms":0.118,"cost_ms":1.473},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"shader/extended_material","frame":30,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":448,"extents":["0.9945 1.0000 1.0000"],"frame":30,"frame_ms":23.299,"materials":1,"mesh_entities":1,"meshes":6,"other_material":1,"visible":1},"raea":{"frame":37,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":0,"other_material":1,"extents":["0.9945 1.0000 1.0000"],"frame_ms":0.849,"step_ms":0.216,"cost_ms":1.065},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"shader/extended_material","frame":60,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":448,"extents":["0.9945 1.0000 1.0000"],"frame":60,"frame_ms":16.738,"materials":1,"mesh_entities":1,"meshes":6,"other_material":1,"visible":1},"raea":{"frame":67,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":0,"other_material":1,"extents":["0.9945 1.0000 1.0000"],"frame_ms":0.781,"step_ms":0.156,"cost_ms":0.937},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/orthographic","frame":10,"ssim":0.999503,"tile":0,"bevy":{"batch_keys":5,"entities":446,"extents":["0.5000 0.5000 0.5000","2.5000 0.0000 2.5000"],"frame":10,"frame_ms":35.837,"materials":6,"mesh_entities":5,"meshes":10,"other_material":0,"visible":5},"raea":{"frame":17,"entities":499,"mesh_entities":5,"visible":5,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["0.5000 0.5000 0.5000","2.5000 0.0000 2.5000"],"frame_ms":1.107,"step_ms":0.200,"cost_ms":1.307},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/parenting","frame":30,"ssim":0.999969,"tile":0,"bevy":{"batch_keys":1,"entities":443,"extents":["1.0000 1.0000 1.0000"],"frame":30,"frame_ms":23.457,"materials":2,"mesh_entities":2,"meshes":6,"other_material":0,"visible":2},"raea":{"frame":37,"entities":496,"mesh_entities":2,"visible":2,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["1.0000 1.0000 1.0000"],"frame_ms":0.92,"step_ms":0.174,"cost_ms":1.094},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/parenting","frame":60,"ssim":0.999968,"tile":0,"bevy":{"batch_keys":1,"entities":443,"extents":["1.0000 1.0000 1.0000"],"frame":60,"frame_ms":16.687,"materials":2,"mesh_entities":2,"meshes":6,"other_material":0,"visible":2},"raea":{"frame":67,"entities":496,"mesh_entities":2,"visible":2,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["1.0000 1.0000 1.0000"],"frame_ms":0.854,"step_ms":0.121,"cost_ms":0.975},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/mesh2d","frame":10,"ssim":0.999348,"tile":0,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":10,"frame_ms":33.938,"materials":1,"mesh_entities":0,"meshes":6,"other_material":0,"visible":0},"raea":{"frame":17,"entities":494,"mesh_entities":0,"visible":0,"meshes":8,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.076,"step_ms":0.173,"cost_ms":1.249},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/sprite","frame":10,"ssim":0.998326,"tile":8,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":10,"frame_ms":34.443,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.174,"step_ms":0.164,"cost_ms":1.338},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"transforms/3d_rotation","frame":30,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":1,"entities":442,"extents":["0.5000 0.5000 0.5000"],"frame":30,"frame_ms":23.477,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":37,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.5000 0.5000"],"frame_ms":0.93,"step_ms":0.165,"cost_ms":1.095},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"transforms/3d_rotation","frame":60,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":1,"entities":442,"extents":["0.5000 0.5000 0.5000"],"frame":60,"frame_ms":16.649,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":67,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.5000 0.5000"],"frame_ms":0.823,"step_ms":0.116,"cost_ms":0.939},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/sprite_flipping","frame":10,"ssim":0.998326,"tile":8,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":10,"frame_ms":34.344,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.098,"step_ms":0.136,"cost_ms":1.234},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/move_sprite","frame":120,"ssim":0.998270,"tile":9,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":120,"frame_ms":16.645,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":127,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.773,"step_ms":0.074,"cost_ms":0.847},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/move_sprite","frame":30,"ssim":0.998261,"tile":8,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":30,"frame_ms":23.012,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":37,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.843,"step_ms":0.194,"cost_ms":1.037},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/transparency_2d","frame":10,"ssim":0.997674,"tile":5,"bevy":{"batch_keys":0,"entities":443,"extents":[],"frame":10,"frame_ms":34.576,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":496,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.074,"step_ms":0.136,"cost_ms":1.21},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"transforms/translation","frame":180,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":1,"entities":442,"extents":["0.5000 0.5000 0.5000"],"frame":180,"frame_ms":16.665,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":187,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.5000 0.5000"],"frame_ms":0.762,"step_ms":0.069,"cost_ms":0.831},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"transforms/translation","frame":60,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":1,"entities":442,"extents":["0.5000 0.5000 0.5000"],"frame":60,"frame_ms":20.048,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":67,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.5000 0.5000"],"frame_ms":0.804,"step_ms":0.108,"cost_ms":0.912},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"transforms/scale","frame":300,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":1,"entities":442,"extents":["0.5000 0.5000 0.5000"],"frame":300,"frame_ms":16.67,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":307,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.5000 0.5000"],"frame_ms":0.765,"step_ms":0.072,"cost_ms":0.837},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"transforms/scale","frame":60,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":1,"entities":442,"extents":["0.5000 0.5000 0.5000"],"frame":60,"frame_ms":20.098,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":67,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.5000 0.5000"],"frame_ms":0.807,"step_ms":0.113,"cost_ms":0.92},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/texture","frame":10,"ssim":0.999547,"tile":1,"bevy":{"batch_keys":3,"entities":443,"extents":["4.0000 1.0000 0.0000"],"frame":10,"frame_ms":35.41,"materials":4,"mesh_entities":3,"meshes":6,"other_material":0,"visible":3},"raea":{"frame":17,"entities":497,"mesh_entities":3,"visible":3,"meshes":8,"materials":4,"batch_keys":3,"other_material":0,"extents":["4.0000 0.0000 1.0000"],"frame_ms":1.127,"step_ms":0.200,"cost_ms":1.327},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"shader/animate_shader","frame":30,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":447,"extents":["0.5000 0.5000 0.5000"],"frame":30,"frame_ms":22.794,"materials":1,"mesh_entities":1,"meshes":6,"other_material":1,"visible":1},"raea":{"frame":37,"entities":494,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":0,"other_material":1,"extents":["0.5000 0.5000 0.5000"],"frame_ms":0.834,"step_ms":0.110,"cost_ms":0.944},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"shader/animate_shader","frame":60,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":447,"extents":["0.5000 0.5000 0.5000"],"frame":60,"frame_ms":16.6,"materials":1,"mesh_entities":1,"meshes":6,"other_material":1,"visible":1},"raea":{"frame":67,"entities":494,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":0,"other_material":1,"extents":["0.5000 0.5000 0.5000"],"frame_ms":0.828,"step_ms":0.085,"cost_ms":0.913},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/sprite_sheet","frame":30,"ssim":0.998820,"tile":5,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":30,"frame_ms":22.829,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":37,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.871,"step_ms":0.126,"cost_ms":0.997},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/sprite_sheet","frame":60,"ssim":0.999054,"tile":5,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":60,"frame_ms":16.674,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":67,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.78,"step_ms":0.085,"cost_ms":0.865},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/pbr","frame":30,"ssim":0.997685,"tile":8,"bevy":{"batch_keys":56,"entities":499,"extents":["0.4475 0.4500 0.4500"],"frame":30,"frame_ms":23.621,"materials":57,"mesh_entities":56,"meshes":6,"other_material":0,"visible":56},"raea":{"frame":37,"entities":550,"mesh_entities":56,"visible":56,"meshes":8,"materials":57,"batch_keys":56,"other_material":0,"extents":["0.4475 0.4500 0.4500"],"frame_ms":0.959,"step_ms":0.100,"cost_ms":1.059},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/pbr","frame":60,"ssim":0.997685,"tile":8,"bevy":{"batch_keys":56,"entities":499,"extents":["0.4475 0.4500 0.4500"],"frame":60,"frame_ms":16.707,"materials":57,"mesh_entities":56,"meshes":6,"other_material":0,"visible":56},"raea":{"frame":67,"entities":550,"mesh_entities":56,"visible":56,"meshes":8,"materials":57,"batch_keys":56,"other_material":0,"extents":["0.4475 0.4500 0.4500"],"frame_ms":0.839,"step_ms":0.062,"cost_ms":0.901},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/animated_material","frame":30,"ssim":0.999892,"tile":0,"bevy":{"batch_keys":9,"entities":449,"extents":["0.2500 0.2500 0.2500"],"frame":30,"frame_ms":23.431,"materials":10,"mesh_entities":9,"meshes":6,"other_material":0,"visible":9},"raea":{"frame":37,"entities":502,"mesh_entities":9,"visible":9,"meshes":8,"materials":19,"batch_keys":9,"other_material":0,"extents":["0.2500 0.2500 0.2500"],"frame_ms":1.008,"step_ms":0.377,"cost_ms":1.385},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/animated_material","frame":60,"ssim":0.999940,"tile":0,"bevy":{"batch_keys":9,"entities":449,"extents":["0.2500 0.2500 0.2500"],"frame":60,"frame_ms":16.682,"materials":10,"mesh_entities":9,"meshes":6,"other_material":0,"visible":9},"raea":{"frame":67,"entities":502,"mesh_entities":9,"visible":9,"meshes":8,"materials":19,"batch_keys":9,"other_material":0,"extents":["0.2500 0.2500 0.2500"],"frame_ms":0.915,"step_ms":0.264,"cost_ms":1.179},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"camera/pan_camera_controller","frame":10,"ssim":0.996838,"tile":10,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":10,"frame_ms":34.381,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.047,"step_ms":0.145,"cost_ms":1.192},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"camera/camera_orbit","frame":10,"ssim":0.999220,"tile":8,"bevy":{"batch_keys":2,"entities":445,"extents":["0.5000 0.5000 0.5000","2.5000 0.0000 2.5000"],"frame":10,"frame_ms":36.186,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":17,"entities":496,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["0.5000 0.5000 0.5000","2.5000 0.0000 2.5000"],"frame_ms":1.042,"step_ms":0.218,"cost_ms":1.26},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"camera/projection_zoom","frame":30,"ssim":0.998026,"tile":8,"bevy":{"batch_keys":2,"entities":473,"extents":["12.5927 39.5145 77.3599","2.5000 0.0000 2.5000"],"frame":30,"frame_ms":24.245,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":40,"entities":526,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["12.5927 39.5145 77.3599","2.5000 0.0000 2.5000"],"frame_ms":1.111,"step_ms":0.135,"cost_ms":1.246},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/sprite_animation","frame":12,"ssim":0.997217,"tile":9,"bevy":{"batch_keys":0,"entities":443,"extents":[],"frame":12,"frame_ms":32.015,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":19,"entities":495,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.986,"step_ms":0.162,"cost_ms":1.148},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/sprite_animation","frame":30,"ssim":0.997017,"tile":8,"bevy":{"batch_keys":0,"entities":443,"extents":[],"frame":30,"frame_ms":16.77,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":37,"entities":495,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.881,"step_ms":0.132,"cost_ms":1.013},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/sprite_animation","frame":60,"ssim":0.997099,"tile":8,"bevy":{"batch_keys":0,"entities":443,"extents":[],"frame":60,"frame_ms":16.673,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":67,"entities":495,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.8,"step_ms":0.092,"cost_ms":0.892},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/sprite_tile","frame":30,"ssim":0.998633,"tile":7,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":30,"frame_ms":22.925,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":37,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.889,"step_ms":0.129,"cost_ms":1.018},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/sprite_tile","frame":300,"ssim":0.992213,"tile":7,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":300,"frame_ms":16.666,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":307,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.771,"step_ms":0.059,"cost_ms":0.83},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/vertex_colors","frame":10,"ssim":0.999019,"tile":0,"bevy":{"batch_keys":2,"entities":443,"extents":["0.5000 0.5000 0.5000","2.5000 0.0000 2.5000"],"frame":10,"frame_ms":38.287,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":17,"entities":496,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["0.5000 0.5000 0.5000","2.5000 0.0000 2.5000"],"frame_ms":1.983,"step_ms":0.218,"cost_ms":2.201},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/spherical_area_lights","frame":10,"ssim":0.999738,"tile":0,"bevy":{"batch_keys":7,"entities":453,"extents":["1.0000 1.0000 1.0000","50.0000 0.0000 50.0000"],"frame":10,"frame_ms":35.843,"materials":8,"mesh_entities":7,"meshes":7,"other_material":0,"visible":7},"raea":{"frame":17,"entities":506,"mesh_entities":7,"visible":7,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["1.0000 1.0000 1.0000","50.0000 0.0000 50.0000"],"frame_ms":1.533,"step_ms":0.200,"cost_ms":1.733},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/fog_volumes","frame":10,"ssim":0.995718,"tile":14,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":10,"frame_ms":35.722,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.343,"step_ms":0.291,"cost_ms":1.634},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/fog_volumes","frame":60,"ssim":0.995939,"tile":4,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":60,"frame_ms":16.679,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":67,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.197,"step_ms":0.131,"cost_ms":1.328},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/bloom_3d","frame":10,"ssim":0.996668,"tile":11,"bevy":{"batch_keys":4,"entities":541,"extents":["0.3978 0.4000 0.4000"],"frame":10,"frame_ms":36.436,"materials":5,"mesh_entities":100,"meshes":6,"other_material":0,"visible":46},"raea":{"frame":17,"entities":593,"mesh_entities":100,"visible":46,"meshes":8,"materials":5,"batch_keys":4,"other_material":0,"extents":["0.3978 0.4000 0.4000"],"frame_ms":1.823,"step_ms":1.082,"cost_ms":2.905},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/bloom_3d","frame":60,"ssim":0.996631,"tile":12,"bevy":{"batch_keys":4,"entities":541,"extents":["0.3978 0.4000 0.4000"],"frame":60,"frame_ms":16.689,"materials":5,"mesh_entities":100,"meshes":6,"other_material":0,"visible":46},"raea":{"frame":67,"entities":593,"mesh_entities":100,"visible":46,"meshes":8,"materials":5,"batch_keys":4,"other_material":0,"extents":["0.3978 0.4000 0.4000"],"frame_ms":1.426,"step_ms":0.610,"cost_ms":2.036},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"transforms/transform","frame":10,"ssim":0.999999,"tile":0,"bevy":{"batch_keys":2,"entities":443,"extents":["0.5000 0.5000 0.5000","3.0000 3.0000 2.9996"],"frame":10,"frame_ms":36.165,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":17,"entities":496,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["0.5000 0.5000 0.5000","3.0000 3.0000 2.9996"],"frame_ms":1.291,"step_ms":0.336,"cost_ms":1.627},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"transforms/transform","frame":120,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":2,"entities":443,"extents":["0.5000 0.5000 0.5000","3.0000 3.0000 2.9996"],"frame":120,"frame_ms":16.675,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":127,"entities":496,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["0.5000 0.5000 0.5000","3.0000 3.0000 2.9996"],"frame_ms":0.798,"step_ms":0.126,"cost_ms":0.924},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/transparency_3d","frame":10,"ssim":0.990065,"tile":25,"bevy":{"batch_keys":6,"entities":447,"extents":["0.5000 0.5000 0.5000","3.0000 0.0000 3.0000"],"frame":10,"frame_ms":40.183,"materials":7,"mesh_entities":6,"meshes":11,"other_material":0,"visible":6},"raea":{"frame":17,"entities":500,"mesh_entities":6,"visible":6,"meshes":10,"materials":11,"batch_keys":6,"other_material":0,"extents":["0.5000 0.5000 0.5000","3.0000 0.0000 3.0000"],"frame_ms":2.118,"step_ms":0.555,"cost_ms":2.673},"pixels":false,"draws":true,"time":true,"pass":false,"why":"pixels 0.990065, worst tile 25"}
-{"example":"3d/transparency_3d","frame":90,"ssim":0.998632,"tile":0,"bevy":{"batch_keys":6,"entities":447,"extents":["0.5000 0.5000 0.5000","3.0000 0.0000 3.0000"],"frame":90,"frame_ms":16.641,"materials":7,"mesh_entities":6,"meshes":11,"other_material":0,"visible":6},"raea":{"frame":97,"entities":500,"mesh_entities":6,"visible":6,"meshes":10,"materials":11,"batch_keys":6,"other_material":0,"extents":["0.5000 0.5000 0.5000","3.0000 0.0000 3.0000"],"frame_ms":1.752,"step_ms":0.174,"cost_ms":1.926},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"animation/eased_motion","frame":150,"ssim":0.999822,"tile":0,"bevy":{"batch_keys":2,"entities":443,"extents":["1.0000 1.0000 1.0000","25.0000 0.0000 25.0000"],"frame":150,"frame_ms":16.657,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":157,"entities":496,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["1.0000 1.0000 1.0000","25.0000 0.0000 25.0000"],"frame_ms":1.521,"step_ms":0.076,"cost_ms":1.597},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"animation/eased_motion","frame":240,"ssim":0.999823,"tile":0,"bevy":{"batch_keys":2,"entities":443,"extents":["1.0000 1.0000 1.0000","25.0000 0.0000 25.0000"],"frame":240,"frame_ms":16.688,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":247,"entities":496,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["1.0000 1.0000 1.0000","25.0000 0.0000 25.0000"],"frame_ms":1.421,"step_ms":0.070,"cost_ms":1.491},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"animation/eased_motion","frame":60,"ssim":0.999824,"tile":0,"bevy":{"batch_keys":2,"entities":443,"extents":["1.0000 1.0000 1.0000","25.0000 0.0000 25.0000"],"frame":60,"frame_ms":20.197,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":67,"entities":496,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["1.0000 1.0000 1.0000","25.0000 0.0000 25.0000"],"frame_ms":1.578,"step_ms":0.138,"cost_ms":1.716},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"animation/color_animation","frame":120,"ssim":0.998717,"tile":1,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":120,"frame_ms":16.651,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":127,"entities":499,"mesh_entities":0,"visible":0,"meshes":13,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.796,"step_ms":0.088,"cost_ms":0.884},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"animation/color_animation","frame":200,"ssim":0.996870,"tile":4,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":200,"frame_ms":16.676,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":207,"entities":499,"mesh_entities":0,"visible":0,"meshes":13,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.786,"step_ms":0.072,"cost_ms":0.858},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"animation/color_animation","frame":30,"ssim":0.998699,"tile":2,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":30,"frame_ms":23.043,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":37,"entities":499,"mesh_entities":0,"visible":0,"meshes":13,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.904,"step_ms":0.152,"cost_ms":1.056},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/rect_light","frame":10,"ssim":0.998374,"tile":8,"bevy":{"batch_keys":2,"entities":446,"extents":["0.9945 1.0000 1.0000","10.0000 0.0000 10.0000"],"frame":10,"frame_ms":36.633,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":17,"entities":501,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["0.9945 1.0000 1.0000","10.0000 0.0000 10.0000"],"frame_ms":1.211,"step_ms":0.209,"cost_ms":1.42},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/shadow_caster_receiver","frame":10,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":4,"entities":446,"extents":["0.2486 0.2500 0.2500","10.0000 0.0000 10.0000"],"frame":10,"frame_ms":36.431,"materials":5,"mesh_entities":4,"meshes":8,"other_material":0,"visible":4},"raea":{"frame":17,"entities":499,"mesh_entities":4,"visible":4,"meshes":9,"materials":5,"batch_keys":4,"other_material":0,"extents":["0.2486 0.2500 0.2500","10.0000 0.0000 10.0000"],"frame_ms":1.639,"step_ms":0.209,"cost_ms":1.848},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/spotlight","frame":10,"ssim":0.997767,"tile":10,"bevy":{"batch_keys":4,"entities":530,"extents":["0.0500 0.0500 0.0500","0.1000 0.1000 0.1000","0.2500 0.2500 0.2500","50.0000 0.0000 50.0000"],"frame":10,"frame_ms":37.282,"materials":5,"mesh_entities":73,"meshes":9,"other_material":0,"visible":73},"raea":{"frame":17,"entities":582,"mesh_entities":73,"visible":73,"meshes":11,"materials":5,"batch_keys":4,"other_material":0,"extents":["0.0500 0.0500 0.0500","0.1000 0.1000 0.1000","0.2500 0.2500 0.2500","50.0000 0.0000 50.0000"],"frame_ms":4.418,"step_ms":1.391,"cost_ms":5.809},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/spotlight","frame":90,"ssim":0.996452,"tile":10,"bevy":{"batch_keys":4,"entities":530,"extents":["0.0500 0.0500 0.0500","0.1000 0.1000 0.1000","0.2500 0.2500 0.2500","50.0000 0.0000 50.0000"],"frame":90,"frame_ms":16.657,"materials":5,"mesh_entities":73,"meshes":9,"other_material":0,"visible":73},"raea":{"frame":97,"entities":582,"mesh_entities":73,"visible":73,"meshes":11,"materials":5,"batch_keys":4,"other_material":0,"extents":["0.0500 0.0500 0.0500","0.1000 0.1000 0.1000","0.2500 0.2500 0.2500","50.0000 0.0000 50.0000"],"frame_ms":4.071,"step_ms":0.651,"cost_ms":4.722},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"transforms/align","frame":10,"ssim":0.993011,"tile":11,"bevy":{"batch_keys":5,"entities":453,"extents":["1.4000 0.4500 1.1128","50.0000 0.0000 50.0000"],"frame":10,"frame_ms":36.88,"materials":6,"mesh_entities":5,"meshes":10,"other_material":0,"visible":5},"raea":{"frame":19,"entities":512,"mesh_entities":5,"visible":5,"meshes":12,"materials":6,"batch_keys":5,"other_material":0,"extents":["1.4000 0.4500 1.1128","50.0000 0.0000 50.0000"],"frame_ms":2.396,"step_ms":0.236,"cost_ms":2.632},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"transforms/align","frame":30,"ssim":0.993011,"tile":11,"bevy":{"batch_keys":5,"entities":453,"extents":["1.4000 0.4500 1.1128","50.0000 0.0000 50.0000"],"frame":30,"frame_ms":16.675,"materials":6,"mesh_entities":5,"meshes":10,"other_material":0,"visible":5},"raea":{"frame":39,"entities":512,"mesh_entities":5,"visible":5,"meshes":12,"materials":6,"batch_keys":5,"other_material":0,"extents":["1.4000 0.4500 1.1128","50.0000 0.0000 50.0000"],"frame_ms":1.796,"step_ms":0.132,"cost_ms":1.928},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/3d_viewport_to_world","frame":10,"ssim":0.998921,"tile":1,"bevy":{"batch_keys":1,"entities":442,"extents":["10.0000 0.0000 10.0000"],"frame":10,"frame_ms":16.636,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":17,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["10.0000 0.0000 10.0000"],"frame_ms":0.995,"step_ms":0.255,"cost_ms":1.25},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/3d_viewport_to_world","frame":5,"ssim":0.998921,"tile":1,"bevy":{"batch_keys":1,"entities":442,"extents":["10.0000 0.0000 10.0000"],"frame":5,"frame_ms":51.852,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":12,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["10.0000 0.0000 10.0000"],"frame_ms":1.915,"step_ms":0.183,"cost_ms":2.098},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/atmospheric_fog","frame":10,"ssim":0.998688,"tile":9,"bevy":{"batch_keys":2,"entities":449,"extents":["1.0000 0.1674 1.0026","1.0000 0.5000 0.5000"],"frame":10,"frame_ms":16.376,"materials":3,"mesh_entities":3,"meshes":7,"other_material":0,"visible":3},"raea":{"frame":19,"entities":504,"mesh_entities":3,"visible":3,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["1.0000 0.1674 1.0026","1.0000 0.5000 0.5000"],"frame_ms":1.713,"step_ms":0.227,"cost_ms":1.94},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/atmospheric_fog","frame":5,"ssim":0.998688,"tile":9,"bevy":{"batch_keys":2,"entities":449,"extents":["1.0000 0.1674 1.0026","1.0000 0.5000 0.5000"],"frame":5,"frame_ms":52.938,"materials":3,"mesh_entities":3,"meshes":7,"other_material":0,"visible":3},"raea":{"frame":14,"entities":504,"mesh_entities":3,"visible":3,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["1.0000 0.1674 1.0026","1.0000 0.5000 0.5000"],"frame_ms":2.281,"step_ms":0.700,"cost_ms":2.981},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/rotate_to_cursor","frame":10,"ssim":0.999835,"tile":3,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":10,"frame_ms":16.745,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.237,"step_ms":0.127,"cost_ms":1.364},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/rotate_to_cursor","frame":5,"ssim":0.999835,"tile":3,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":5,"frame_ms":48.804,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.864,"step_ms":0.183,"cost_ms":2.047},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"movement/smooth_follow","frame":120,"ssim":0.998129,"tile":0,"bevy":{"batch_keys":3,"entities":448,"extents":["0.2983 0.3000 0.3000","6.0000 0.0000 6.0000"],"frame":120,"frame_ms":16.667,"materials":4,"mesh_entities":3,"meshes":8,"other_material":0,"visible":3},"raea":{"frame":127,"entities":497,"mesh_entities":3,"visible":3,"meshes":9,"materials":4,"batch_keys":3,"other_material":0,"extents":["0.2983 0.3000 0.3000","6.0000 0.0000 6.0000"],"frame_ms":1.515,"step_ms":0.131,"cost_ms":1.646},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"movement/smooth_follow","frame":30,"ssim":0.998157,"tile":0,"bevy":{"batch_keys":3,"entities":448,"extents":["0.2983 0.3000 0.3000","6.0000 0.0000 6.0000"],"frame":30,"frame_ms":23.464,"materials":4,"mesh_entities":3,"meshes":8,"other_material":0,"visible":3},"raea":{"frame":37,"entities":497,"mesh_entities":3,"visible":3,"meshes":9,"materials":4,"batch_keys":3,"other_material":0,"extents":["0.2983 0.3000 0.3000","6.0000 0.0000 6.0000"],"frame_ms":1.648,"step_ms":0.213,"cost_ms":1.861},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/mesh_ray_cast","frame":300,"ssim":0.999715,"tile":1,"bevy":{"batch_keys":1,"entities":447,"extents":["0.5000 0.0000 0.5000"],"frame":300,"frame_ms":17.406,"materials":2,"mesh_entities":6,"meshes":6,"other_material":0,"visible":6},"raea":{"frame":307,"entities":4658,"mesh_entities":6,"visible":6,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.0000 0.5000"],"frame_ms":1.336,"step_ms":3.764,"cost_ms":5.1},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/mesh_ray_cast","frame":900,"ssim":0.999608,"tile":1,"bevy":{"batch_keys":1,"entities":447,"extents":["0.5000 0.0000 0.5000"],"frame":900,"frame_ms":16.665,"materials":2,"mesh_entities":6,"meshes":6,"other_material":0,"visible":6},"raea":{"frame":907,"entities":44258,"mesh_entities":6,"visible":6,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.0000 0.5000"],"frame_ms":3.53,"step_ms":1.436,"cost_ms":4.966},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/mesh2d_alpha_mode","frame":10,"ssim":0.989355,"tile":8,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":10,"frame_ms":16.696,"materials":1,"mesh_entities":0,"meshes":6,"other_material":0,"visible":0},"raea":{"frame":17,"entities":499,"mesh_entities":0,"visible":0,"meshes":13,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.041,"step_ms":0.136,"cost_ms":1.177},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/mesh2d_alpha_mode","frame":5,"ssim":0.989355,"tile":8,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":5,"frame_ms":50.322,"materials":1,"mesh_entities":0,"meshes":6,"other_material":0,"visible":0},"raea":{"frame":12,"entities":499,"mesh_entities":0,"visible":0,"meshes":13,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.972,"step_ms":0.217,"cost_ms":2.189},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/lightmaps","frame":10,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":6,"entities":453,"extents":["0.0001 274.4000 279.6000","102.6464 82.5000 102.6464","103.2390 165.0000 103.2390","278.0000 274.4000 279.6001","3.2000 274.4000 279.6000","65.0000 0.0000 52.5000"],"frame":10,"frame_ms":16.629,"materials":6,"mesh_entities":6,"meshes":11,"other_material":0,"visible":6},"raea":{"frame":19,"entities":506,"mesh_entities":6,"visible":6,"meshes":13,"materials":10,"batch_keys":6,"other_material":0,"extents":["0.0001 274.4000 279.6000","102.6464 82.5000 102.6464","103.2390 165.0000 103.2390","278.0000 274.4000 279.6001","3.2000 274.4000 279.6000","65.0000 0.0000 52.5000"],"frame_ms":1.912,"step_ms":0.264,"cost_ms":2.176},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"3d/lightmaps","frame":5,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":6,"entities":453,"extents":["0.0001 274.4000 279.6000","102.6464 82.5000 102.6464","103.2390 165.0000 103.2390","278.0000 274.4000 279.6001","3.2000 274.4000 279.6000","65.0000 0.0000 52.5000"],"frame":5,"frame_ms":58.102,"materials":6,"mesh_entities":6,"meshes":11,"other_material":0,"visible":6},"raea":{"frame":14,"entities":506,"mesh_entities":6,"visible":6,"meshes":13,"materials":10,"batch_keys":6,"other_material":0,"extents":["0.0001 274.4000 279.6000","102.6464 82.5000 102.6464","103.2390 165.0000 103.2390","278.0000 274.4000 279.6001","3.2000 274.4000 279.6000","65.0000 0.0000 52.5000"],"frame_ms":2.133,"step_ms":0.200,"cost_ms":2.333},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/styling/transparency_ui","frame":10,"ssim":0.999700,"tile":3,"bevy":{"batch_keys":0,"entities":445,"extents":[],"frame":10,"frame_ms":16.572,"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.003,"step_ms":0.127,"cost_ms":1.13},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/styling/transparency_ui","frame":5,"ssim":0.999700,"tile":3,"bevy":{"batch_keys":0,"entities":445,"extents":[],"frame":5,"frame_ms":49.637,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.742,"step_ms":0.183,"cost_ms":1.925},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/layout/fixed_node","frame":10,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":444,"extents":[],"frame":10,"frame_ms":16.265,"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.036,"step_ms":0.155,"cost_ms":1.191},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/layout/fixed_node","frame":5,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":444,"extents":[],"frame":5,"frame_ms":49.648,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.795,"step_ms":0.200,"cost_ms":1.995},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/images/image_node","frame":10,"ssim":0.999893,"tile":1,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":10,"frame_ms":16.32,"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.055,"step_ms":0.145,"cost_ms":1.2},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/images/image_node","frame":5,"ssim":0.999893,"tile":1,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":5,"frame_ms":48.238,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.834,"step_ms":0.183,"cost_ms":2.017},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/text/font_weights","frame":10,"ssim":0.990279,"tile":17,"bevy":{"batch_keys":0,"entities":454,"extents":[],"frame":10,"frame_ms":16.718,"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":0.968,"step_ms":0.136,"cost_ms":1.104},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/text/font_weights","frame":5,"ssim":0.990279,"tile":17,"bevy":{"batch_keys":0,"entities":454,"extents":[],"frame":5,"frame_ms":49.234,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.011,"step_ms":0.150,"cost_ms":2.161},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/text/font_variations","frame":10,"ssim":0.992845,"tile":21,"bevy":{"batch_keys":0,"entities":452,"extents":[],"frame":10,"frame_ms":16.423,"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":0.897,"step_ms":0.127,"cost_ms":1.024},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/text/font_variations","frame":5,"ssim":0.992845,"tile":21,"bevy":{"batch_keys":0,"entities":452,"extents":[],"frame":5,"frame_ms":49.923,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.687,"step_ms":0.167,"cost_ms":1.854},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/text/text_background_colors","frame":10,"ssim":0.997735,"tile":8,"bevy":{"batch_keys":0,"entities":505,"extents":[],"frame":10,"frame_ms":16.75,"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.09,"step_ms":0.155,"cost_ms":1.245},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/text/text_background_colors","frame":5,"ssim":0.997735,"tile":8,"bevy":{"batch_keys":0,"entities":505,"extents":[],"frame":5,"frame_ms":49.491,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.973,"step_ms":0.150,"cost_ms":2.123},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/text/strikethrough_and_underline","frame":10,"ssim":0.990152,"tile":14,"bevy":{"batch_keys":0,"entities":454,"extents":[],"frame":10,"frame_ms":16.37,"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":0.885,"step_ms":0.109,"cost_ms":0.994},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/text/strikethrough_and_underline","frame":5,"ssim":0.990152,"tile":14,"bevy":{"batch_keys":0,"entities":454,"extents":[],"frame":5,"frame_ms":51.356,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.787,"step_ms":0.167,"cost_ms":1.954},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/scroll_and_overflow/overflow","frame":10,"ssim":0.998143,"tile":5,"bevy":{"batch_keys":0,"entities":461,"extents":[],"frame":10,"frame_ms":16.737,"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.407,"step_ms":0.173,"cost_ms":1.58},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/scroll_and_overflow/overflow","frame":5,"ssim":0.998143,"tile":5,"bevy":{"batch_keys":0,"entities":461,"extents":[],"frame":5,"frame_ms":48.451,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.759,"step_ms":0.150,"cost_ms":1.909},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/images/ui_texture_atlas","frame":10,"ssim":0.999601,"tile":7,"bevy":{"batch_keys":0,"entities":445,"extents":[],"frame":10,"frame_ms":16.722,"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":0.983,"step_ms":0.136,"cost_ms":1.119},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"ui/images/ui_texture_atlas","frame":5,"ssim":0.999601,"tile":7,"bevy":{"batch_keys":0,"entities":445,"extents":[],"frame":5,"frame_ms":50.405,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.732,"step_ms":0.150,"cost_ms":1.882},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
-{"example":"2d/mesh2d_vertex_color_texture","frame":10,"ssim":0.998651,"tile":6,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":10,"frame_ms":60.317,"materials":1,"mesh_entities":0,"meshes":6,"other_material":0,"visible":0},"raea":{"frame":17,"entities":495,"mesh_entities":0,"visible":0,"meshes":9,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.05,"step_ms":0.145,"cost_ms":1.195},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"stress_tests/many_cubes","frame":30,"ssim":0.995176,"tile":1,"bevy":{"batch_keys":2,"entities":10444,"extents":["0.3620 0.3620 0.3620","550.0000 550.0000 550.0000"],"frame":30,"frame_ms":12.5,"materials":3,"mesh_entities":10001,"meshes":7,"other_material":0,"visible":729},"raea":{"frame":37,"entities":10495,"mesh_entities":10001,"visible":729,"meshes":9,"materials":2,"batch_keys":2,"other_material":0,"extents":["0.3620 0.3620 0.3620","550.0000 550.0000 550.0000"],"frame_ms":1.959,"step_ms":0.610,"cost_ms":2.569},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"stress_tests/many_cubes","frame":60,"ssim":0.995154,"tile":1,"bevy":{"batch_keys":2,"entities":10444,"extents":["0.3620 0.3620 0.3620","550.0000 550.0000 550.0000"],"frame":60,"frame_ms":2.142,"materials":3,"mesh_entities":10001,"meshes":7,"other_material":0,"visible":734},"raea":{"frame":67,"entities":10495,"mesh_entities":10001,"visible":733,"meshes":9,"materials":2,"batch_keys":2,"other_material":0,"extents":["0.3620 0.3620 0.3620","550.0000 550.0000 550.0000"],"frame_ms":1.541,"step_ms":0.489,"cost_ms":2.03},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/3d_scene","frame":10,"ssim":0.999998,"tile":0,"bevy":{"batch_keys":2,"entities":443,"extents":["0.5000 0.5000 0.5000","4.0000 4.0000 0.0000"],"frame":10,"frame_ms":16.678,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":17,"entities":498,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["0.5000 0.5000 0.5000","4.0000 4.0000 0.0000"],"frame_ms":2.018,"step_ms":0.218,"cost_ms":2.236},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/3d_scene","frame":5,"ssim":0.999998,"tile":0,"bevy":{"batch_keys":2,"entities":443,"extents":["0.5000 0.5000 0.5000","4.0000 4.0000 0.0000"],"frame":5,"frame_ms":53.981,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":12,"entities":498,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["0.5000 0.5000 0.5000","4.0000 4.0000 0.0000"],"frame_ms":3.034,"step_ms":0.167,"cost_ms":3.201},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"stress_tests/many_lights","frame":30,"ssim":0.999957,"tile":0,"bevy":{"batch_keys":1,"entities":100443,"extents":["49.9006 50.0000 50.0000"],"frame":30,"frame_ms":14.545,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":1},"raea":{"frame":37,"entities":100495,"mesh_entities":2,"visible":1,"meshes":9,"materials":3,"batch_keys":1,"other_material":0,"extents":["49.9006 50.0000 50.0000"],"frame_ms":4.072,"step_ms":2.429,"cost_ms":6.501},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"stress_tests/many_lights","frame":60,"ssim":0.999954,"tile":0,"bevy":{"batch_keys":1,"entities":100445,"extents":["49.9006 50.0000 50.0000"],"frame":60,"frame_ms":2.508,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":1},"raea":{"frame":67,"entities":100495,"mesh_entities":2,"visible":1,"meshes":9,"materials":3,"batch_keys":1,"other_material":0,"extents":["49.9006 50.0000 50.0000"],"frame_ms":4.384,"step_ms":2.075,"cost_ms":6.459},"pixels":true,"draws":true,"time":false,"pass":false,"why":"frame 6.459 ms (4.384 update + 2.075 React step) vs 2.508 ms"}
+{"example":"stress_tests/many_foxes","frame":30,"ssim":0.989592,"tile":3,"bevy":{"batch_keys":2,"entities":30464,"extents":["17.4810 42.8200 84.6165","2500.0000 0.0000 2500.0000","50.9020 42.8200 89.1329","54.3371 42.8200 89.5665","81.3309 42.8200 92.9734","85.2965 42.8200 93.4739","94.6316 42.8200 94.6520","94.6316 42.8200 94.6521"],"frame":30,"frame_ms":15.286,"materials":3,"mesh_entities":1001,"meshes":7,"other_material":0,"visible":1001},"raea":{"frame":39,"entities":31495,"mesh_entities":1001,"visible":1001,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["17.4809 42.8200 84.6165","2500.0000 0.0000 2500.0000","50.9021 42.8200 89.1329","50.9021 42.8200 89.1330","54.3371 42.8200 89.5665","81.3310 42.8200 92.9734","85.2964 42.8200 93.4738","94.6316 42.8200 94.6520"],"frame_ms":9.108,"step_ms":9.506,"cost_ms":18.614},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"stress_tests/many_foxes","frame":60,"ssim":0.990304,"tile":3,"bevy":{"batch_keys":2,"entities":30464,"extents":["23.6615 34.9370 84.2011","23.6615 34.9370 84.2012","2500.0000 0.0000 2500.0000","78.2183 34.9370 91.5996","80.4108 34.9370 91.8799","84.3248 34.9370 92.3804","86.0376 34.9370 92.5995","86.0377 34.9371 92.5995"],"frame":60,"frame_ms":3.392,"materials":3,"mesh_entities":1001,"meshes":7,"other_material":0,"visible":1001},"raea":{"frame":69,"entities":31495,"mesh_entities":1001,"visible":1001,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["21.9974 34.9370 83.6309","23.6613 34.9370 84.2011","2500.0000 0.0000 2500.0000","78.2186 34.9370 91.5996","80.4110 34.9370 91.8800","84.3247 34.9370 92.3804","86.0374 34.9370 92.5994","86.0374 34.9371 92.5994"],"frame_ms":9.247,"step_ms":10.064,"cost_ms":19.311},"pixels":true,"draws":true,"time":false,"pass":false,"why":"frame 19.311 ms (9.247 update + 10.064 React step) vs 3.392 ms"}
+{"example":"animation/animated_mesh","frame":30,"ssim":0.996636,"tile":1,"bevy":{"batch_keys":2,"entities":472,"extents":["15.4187 42.8200 84.0474","250000.0000 0.0000 250000.0000"],"frame":30,"frame_ms":24.856,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":40,"entities":526,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["15.4187 42.8200 84.0474","250000.0000 0.0000 250000.0000"],"frame_ms":2.471,"step_ms":0.245,"cost_ms":2.716},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"animation/animated_mesh","frame":60,"ssim":0.996594,"tile":1,"bevy":{"batch_keys":2,"entities":472,"extents":["19.9546 34.9370 82.9540","250000.0000 0.0000 250000.0000"],"frame":60,"frame_ms":16.679,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":70,"entities":526,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["19.9546 34.9370 82.9540","250000.0000 0.0000 250000.0000"],"frame_ms":1.452,"step_ms":0.134,"cost_ms":1.586},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"shader/extended_material","frame":30,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":448,"extents":["0.9945 1.0000 1.0000"],"frame":30,"frame_ms":24.291,"materials":1,"mesh_entities":1,"meshes":6,"other_material":1,"visible":1},"raea":{"frame":37,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":0,"other_material":1,"extents":["0.9945 1.0000 1.0000"],"frame_ms":0.996,"step_ms":0.310,"cost_ms":1.306},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"shader/extended_material","frame":60,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":448,"extents":["0.9945 1.0000 1.0000"],"frame":60,"frame_ms":16.721,"materials":1,"mesh_entities":1,"meshes":6,"other_material":1,"visible":1},"raea":{"frame":67,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":0,"other_material":1,"extents":["0.9945 1.0000 1.0000"],"frame_ms":0.952,"step_ms":0.207,"cost_ms":1.159},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/orthographic","frame":10,"ssim":0.999503,"tile":0,"bevy":{"batch_keys":5,"entities":446,"extents":["0.5000 0.5000 0.5000","2.5000 0.0000 2.5000"],"frame":10,"frame_ms":37.64,"materials":6,"mesh_entities":5,"meshes":10,"other_material":0,"visible":5},"raea":{"frame":17,"entities":499,"mesh_entities":5,"visible":5,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["0.5000 0.5000 0.5000","2.5000 0.0000 2.5000"],"frame_ms":1.357,"step_ms":0.391,"cost_ms":1.748},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/parenting","frame":30,"ssim":0.999969,"tile":0,"bevy":{"batch_keys":1,"entities":443,"extents":["1.0000 1.0000 1.0000"],"frame":30,"frame_ms":23.781,"materials":2,"mesh_entities":2,"meshes":6,"other_material":0,"visible":2},"raea":{"frame":37,"entities":496,"mesh_entities":2,"visible":2,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["1.0000 1.0000 1.0000"],"frame_ms":1.125,"step_ms":0.200,"cost_ms":1.325},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/parenting","frame":60,"ssim":0.999968,"tile":0,"bevy":{"batch_keys":1,"entities":443,"extents":["1.0000 1.0000 1.0000"],"frame":60,"frame_ms":16.698,"materials":2,"mesh_entities":2,"meshes":6,"other_material":0,"visible":2},"raea":{"frame":67,"entities":496,"mesh_entities":2,"visible":2,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["1.0000 1.0000 1.0000"],"frame_ms":1.068,"step_ms":0.154,"cost_ms":1.222},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/mesh2d","frame":10,"ssim":0.999348,"tile":0,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":10,"frame_ms":35.986,"materials":1,"mesh_entities":0,"meshes":6,"other_material":0,"visible":0},"raea":{"frame":17,"entities":494,"mesh_entities":0,"visible":0,"meshes":8,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.215,"step_ms":0.145,"cost_ms":1.36},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/sprite","frame":10,"ssim":0.998326,"tile":8,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":10,"frame_ms":35.342,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.916,"step_ms":0.145,"cost_ms":1.061},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"transforms/3d_rotation","frame":30,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":1,"entities":442,"extents":["0.5000 0.5000 0.5000"],"frame":30,"frame_ms":23.465,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":37,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.5000 0.5000"],"frame_ms":0.862,"step_ms":0.235,"cost_ms":1.097},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"transforms/3d_rotation","frame":60,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":1,"entities":442,"extents":["0.5000 0.5000 0.5000"],"frame":60,"frame_ms":16.621,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":67,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.5000 0.5000"],"frame_ms":0.787,"step_ms":0.144,"cost_ms":0.931},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/sprite_flipping","frame":10,"ssim":0.998326,"tile":8,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":10,"frame_ms":34.496,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.157,"step_ms":0.155,"cost_ms":1.312},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/move_sprite","frame":120,"ssim":0.998270,"tile":9,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":120,"frame_ms":16.662,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":127,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.753,"step_ms":0.064,"cost_ms":0.817},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/move_sprite","frame":30,"ssim":0.998261,"tile":8,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":30,"frame_ms":22.994,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":37,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.89,"step_ms":0.129,"cost_ms":1.019},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/transparency_2d","frame":10,"ssim":0.997674,"tile":5,"bevy":{"batch_keys":0,"entities":443,"extents":[],"frame":10,"frame_ms":34.703,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":496,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.304,"step_ms":0.136,"cost_ms":1.44},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"transforms/translation","frame":180,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":1,"entities":442,"extents":["0.5000 0.5000 0.5000"],"frame":180,"frame_ms":16.677,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":187,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.5000 0.5000"],"frame_ms":0.739,"step_ms":0.086,"cost_ms":0.825},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"transforms/translation","frame":60,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":1,"entities":442,"extents":["0.5000 0.5000 0.5000"],"frame":60,"frame_ms":20.078,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":67,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.5000 0.5000"],"frame_ms":0.9,"step_ms":0.144,"cost_ms":1.044},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"transforms/scale","frame":300,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":1,"entities":442,"extents":["0.5000 0.5000 0.5000"],"frame":300,"frame_ms":16.667,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":307,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.5000 0.5000"],"frame_ms":2.124,"step_ms":0.113,"cost_ms":2.237},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"transforms/scale","frame":60,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":1,"entities":442,"extents":["0.5000 0.5000 0.5000"],"frame":60,"frame_ms":20.461,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":67,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.5000 0.5000"],"frame_ms":2.096,"step_ms":0.443,"cost_ms":2.539},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/texture","frame":10,"ssim":0.999547,"tile":1,"bevy":{"batch_keys":3,"entities":443,"extents":["4.0000 1.0000 0.0000"],"frame":10,"frame_ms":45.674,"materials":4,"mesh_entities":3,"meshes":6,"other_material":0,"visible":3},"raea":{"frame":17,"entities":497,"mesh_entities":3,"visible":3,"meshes":8,"materials":4,"batch_keys":3,"other_material":0,"extents":["4.0000 0.0000 1.0000"],"frame_ms":2.132,"step_ms":0.455,"cost_ms":2.587},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"shader/animate_shader","frame":30,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":447,"extents":["0.5000 0.5000 0.5000"],"frame":30,"frame_ms":26.573,"materials":1,"mesh_entities":1,"meshes":6,"other_material":1,"visible":1},"raea":{"frame":37,"entities":494,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":0,"other_material":1,"extents":["0.5000 0.5000 0.5000"],"frame_ms":1.694,"step_ms":0.187,"cost_ms":1.881},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"shader/animate_shader","frame":60,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":447,"extents":["0.5000 0.5000 0.5000"],"frame":60,"frame_ms":16.702,"materials":1,"mesh_entities":1,"meshes":6,"other_material":1,"visible":1},"raea":{"frame":67,"entities":494,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":0,"other_material":1,"extents":["0.5000 0.5000 0.5000"],"frame_ms":1.551,"step_ms":0.174,"cost_ms":1.725},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/sprite_sheet","frame":30,"ssim":0.998820,"tile":5,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":30,"frame_ms":24.745,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":37,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.402,"step_ms":0.171,"cost_ms":1.573},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/sprite_sheet","frame":60,"ssim":0.999054,"tile":5,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":60,"frame_ms":16.64,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":67,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.377,"step_ms":0.152,"cost_ms":1.529},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/pbr","frame":30,"ssim":0.997685,"tile":8,"bevy":{"batch_keys":56,"entities":499,"extents":["0.4475 0.4500 0.4500"],"frame":30,"frame_ms":24.914,"materials":57,"mesh_entities":56,"meshes":6,"other_material":0,"visible":56},"raea":{"frame":37,"entities":550,"mesh_entities":56,"visible":56,"meshes":8,"materials":57,"batch_keys":56,"other_material":0,"extents":["0.4475 0.4500 0.4500"],"frame_ms":1.609,"step_ms":0.100,"cost_ms":1.709},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/pbr","frame":60,"ssim":0.997685,"tile":8,"bevy":{"batch_keys":56,"entities":499,"extents":["0.4475 0.4500 0.4500"],"frame":60,"frame_ms":16.655,"materials":57,"mesh_entities":56,"meshes":6,"other_material":0,"visible":56},"raea":{"frame":67,"entities":550,"mesh_entities":56,"visible":56,"meshes":8,"materials":57,"batch_keys":56,"other_material":0,"extents":["0.4475 0.4500 0.4500"],"frame_ms":1.501,"step_ms":0.074,"cost_ms":1.575},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/animated_material","frame":30,"ssim":0.999892,"tile":0,"bevy":{"batch_keys":9,"entities":449,"extents":["0.2500 0.2500 0.2500"],"frame":30,"frame_ms":24.825,"materials":10,"mesh_entities":9,"meshes":6,"other_material":0,"visible":9},"raea":{"frame":37,"entities":502,"mesh_entities":9,"visible":9,"meshes":8,"materials":19,"batch_keys":9,"other_material":0,"extents":["0.2500 0.2500 0.2500"],"frame_ms":1.208,"step_ms":0.381,"cost_ms":1.589},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/animated_material","frame":60,"ssim":0.999940,"tile":0,"bevy":{"batch_keys":9,"entities":449,"extents":["0.2500 0.2500 0.2500"],"frame":60,"frame_ms":16.67,"materials":10,"mesh_entities":9,"meshes":6,"other_material":0,"visible":9},"raea":{"frame":67,"entities":502,"mesh_entities":9,"visible":9,"meshes":8,"materials":19,"batch_keys":9,"other_material":0,"extents":["0.2500 0.2500 0.2500"],"frame_ms":1.09,"step_ms":0.379,"cost_ms":1.469},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"camera/pan_camera_controller","frame":10,"ssim":0.996838,"tile":10,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":10,"frame_ms":37.744,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.269,"step_ms":0.145,"cost_ms":1.414},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"camera/camera_orbit","frame":10,"ssim":0.999220,"tile":8,"bevy":{"batch_keys":2,"entities":445,"extents":["0.5000 0.5000 0.5000","2.5000 0.0000 2.5000"],"frame":10,"frame_ms":38.223,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":17,"entities":496,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["0.5000 0.5000 0.5000","2.5000 0.0000 2.5000"],"frame_ms":1.227,"step_ms":0.218,"cost_ms":1.445},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"camera/projection_zoom","frame":30,"ssim":0.998026,"tile":8,"bevy":{"batch_keys":2,"entities":473,"extents":["12.5927 39.5145 77.3599","2.5000 0.0000 2.5000"],"frame":30,"frame_ms":25.201,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":40,"entities":526,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["12.5927 39.5145 77.3599","2.5000 0.0000 2.5000"],"frame_ms":1.392,"step_ms":0.135,"cost_ms":1.527},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/sprite_animation","frame":12,"ssim":0.997217,"tile":9,"bevy":{"batch_keys":0,"entities":443,"extents":[],"frame":12,"frame_ms":34.237,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":19,"entities":495,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.219,"step_ms":0.238,"cost_ms":1.457},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/sprite_animation","frame":30,"ssim":0.997017,"tile":8,"bevy":{"batch_keys":0,"entities":443,"extents":[],"frame":30,"frame_ms":16.656,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":37,"entities":495,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.026,"step_ms":0.155,"cost_ms":1.181},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/sprite_animation","frame":60,"ssim":0.997099,"tile":8,"bevy":{"batch_keys":0,"entities":443,"extents":[],"frame":60,"frame_ms":16.664,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":67,"entities":495,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.177,"step_ms":0.097,"cost_ms":1.274},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/sprite_tile","frame":30,"ssim":0.998633,"tile":7,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":30,"frame_ms":23.158,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":37,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.876,"step_ms":0.152,"cost_ms":1.028},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/sprite_tile","frame":300,"ssim":0.992213,"tile":7,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":300,"frame_ms":16.664,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":307,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.742,"step_ms":0.049,"cost_ms":0.791},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/vertex_colors","frame":10,"ssim":0.999019,"tile":0,"bevy":{"batch_keys":2,"entities":443,"extents":["0.5000 0.5000 0.5000","2.5000 0.0000 2.5000"],"frame":10,"frame_ms":38.627,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":17,"entities":496,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["0.5000 0.5000 0.5000","2.5000 0.0000 2.5000"],"frame_ms":1.946,"step_ms":0.236,"cost_ms":2.182},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/spherical_area_lights","frame":10,"ssim":0.999738,"tile":0,"bevy":{"batch_keys":7,"entities":453,"extents":["1.0000 1.0000 1.0000","50.0000 0.0000 50.0000"],"frame":10,"frame_ms":38.313,"materials":8,"mesh_entities":7,"meshes":7,"other_material":0,"visible":7},"raea":{"frame":17,"entities":506,"mesh_entities":7,"visible":7,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["1.0000 1.0000 1.0000","50.0000 0.0000 50.0000"],"frame_ms":1.484,"step_ms":0.218,"cost_ms":1.702},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/fog_volumes","frame":10,"ssim":0.995718,"tile":14,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":10,"frame_ms":36.959,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.625,"step_ms":0.318,"cost_ms":1.943},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/fog_volumes","frame":60,"ssim":0.995939,"tile":4,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":60,"frame_ms":16.661,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":67,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.579,"step_ms":0.120,"cost_ms":1.699},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/bloom_3d","frame":10,"ssim":0.996668,"tile":11,"bevy":{"batch_keys":4,"entities":541,"extents":["0.3978 0.4000 0.4000"],"frame":10,"frame_ms":36.41,"materials":5,"mesh_entities":100,"meshes":6,"other_material":0,"visible":46},"raea":{"frame":17,"entities":593,"mesh_entities":100,"visible":46,"meshes":8,"materials":5,"batch_keys":4,"other_material":0,"extents":["0.3978 0.4000 0.4000"],"frame_ms":1.939,"step_ms":1.109,"cost_ms":3.048},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/bloom_3d","frame":60,"ssim":0.996631,"tile":12,"bevy":{"batch_keys":4,"entities":541,"extents":["0.3978 0.4000 0.4000"],"frame":60,"frame_ms":16.665,"materials":5,"mesh_entities":100,"meshes":6,"other_material":0,"visible":46},"raea":{"frame":67,"entities":593,"mesh_entities":100,"visible":46,"meshes":8,"materials":5,"batch_keys":4,"other_material":0,"extents":["0.3978 0.4000 0.4000"],"frame_ms":1.44,"step_ms":0.621,"cost_ms":2.061},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"transforms/transform","frame":10,"ssim":0.999999,"tile":0,"bevy":{"batch_keys":2,"entities":443,"extents":["0.5000 0.5000 0.5000","3.0000 3.0000 2.9996"],"frame":10,"frame_ms":36.37,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":17,"entities":496,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["0.5000 0.5000 0.5000","3.0000 3.0000 2.9996"],"frame_ms":1.113,"step_ms":0.327,"cost_ms":1.44},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"transforms/transform","frame":120,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":2,"entities":443,"extents":["0.5000 0.5000 0.5000","3.0000 3.0000 2.9996"],"frame":120,"frame_ms":16.672,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":127,"entities":496,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["0.5000 0.5000 0.5000","3.0000 3.0000 2.9996"],"frame_ms":0.756,"step_ms":0.144,"cost_ms":0.9},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/transparency_3d","frame":10,"ssim":0.990065,"tile":25,"bevy":{"batch_keys":6,"entities":447,"extents":["0.5000 0.5000 0.5000","3.0000 0.0000 3.0000"],"frame":10,"frame_ms":40.265,"materials":7,"mesh_entities":6,"meshes":11,"other_material":0,"visible":6},"raea":{"frame":17,"entities":500,"mesh_entities":6,"visible":6,"meshes":10,"materials":11,"batch_keys":6,"other_material":0,"extents":["0.5000 0.5000 0.5000","3.0000 0.0000 3.0000"],"frame_ms":2.205,"step_ms":0.582,"cost_ms":2.787},"pixels":false,"draws":true,"time":true,"pass":false,"why":"pixels 0.990065, worst tile 25"}
+{"example":"3d/transparency_3d","frame":90,"ssim":0.998632,"tile":0,"bevy":{"batch_keys":6,"entities":447,"extents":["0.5000 0.5000 0.5000","3.0000 0.0000 3.0000"],"frame":90,"frame_ms":16.667,"materials":7,"mesh_entities":6,"meshes":11,"other_material":0,"visible":6},"raea":{"frame":97,"entities":500,"mesh_entities":6,"visible":6,"meshes":10,"materials":11,"batch_keys":6,"other_material":0,"extents":["0.5000 0.5000 0.5000","3.0000 0.0000 3.0000"],"frame_ms":2.04,"step_ms":0.173,"cost_ms":2.213},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"animation/eased_motion","frame":150,"ssim":0.999822,"tile":0,"bevy":{"batch_keys":2,"entities":443,"extents":["1.0000 1.0000 1.0000","25.0000 0.0000 25.0000"],"frame":150,"frame_ms":16.65,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":157,"entities":496,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["1.0000 1.0000 1.0000","25.0000 0.0000 25.0000"],"frame_ms":1.456,"step_ms":0.075,"cost_ms":1.531},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"animation/eased_motion","frame":240,"ssim":0.999823,"tile":0,"bevy":{"batch_keys":2,"entities":443,"extents":["1.0000 1.0000 1.0000","25.0000 0.0000 25.0000"],"frame":240,"frame_ms":16.683,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":247,"entities":496,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["1.0000 1.0000 1.0000","25.0000 0.0000 25.0000"],"frame_ms":1.463,"step_ms":0.066,"cost_ms":1.529},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"animation/eased_motion","frame":60,"ssim":0.999824,"tile":0,"bevy":{"batch_keys":2,"entities":443,"extents":["1.0000 1.0000 1.0000","25.0000 0.0000 25.0000"],"frame":60,"frame_ms":20.28,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":67,"entities":496,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["1.0000 1.0000 1.0000","25.0000 0.0000 25.0000"],"frame_ms":1.568,"step_ms":0.120,"cost_ms":1.688},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"animation/color_animation","frame":120,"ssim":0.998717,"tile":1,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":120,"frame_ms":16.675,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":127,"entities":499,"mesh_entities":0,"visible":0,"meshes":13,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.792,"step_ms":0.088,"cost_ms":0.88},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"animation/color_animation","frame":200,"ssim":0.996870,"tile":4,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":200,"frame_ms":16.645,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":207,"entities":499,"mesh_entities":0,"visible":0,"meshes":13,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.85,"step_ms":0.072,"cost_ms":0.922},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"animation/color_animation","frame":30,"ssim":0.998699,"tile":2,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":30,"frame_ms":23.05,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":37,"entities":499,"mesh_entities":0,"visible":0,"meshes":13,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.973,"step_ms":0.171,"cost_ms":1.144},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/rect_light","frame":10,"ssim":0.998374,"tile":8,"bevy":{"batch_keys":2,"entities":446,"extents":["0.9945 1.0000 1.0000","10.0000 0.0000 10.0000"],"frame":10,"frame_ms":37.217,"materials":3,"mesh_entities":2,"meshes":7,"other_material":0,"visible":2},"raea":{"frame":17,"entities":501,"mesh_entities":2,"visible":2,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["0.9945 1.0000 1.0000","10.0000 0.0000 10.0000"],"frame_ms":1.321,"step_ms":0.209,"cost_ms":1.53},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/shadow_caster_receiver","frame":10,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":4,"entities":446,"extents":["0.2486 0.2500 0.2500","10.0000 0.0000 10.0000"],"frame":10,"frame_ms":35.815,"materials":5,"mesh_entities":4,"meshes":8,"other_material":0,"visible":4},"raea":{"frame":17,"entities":499,"mesh_entities":4,"visible":4,"meshes":9,"materials":5,"batch_keys":4,"other_material":0,"extents":["0.2486 0.2500 0.2500","10.0000 0.0000 10.0000"],"frame_ms":1.539,"step_ms":0.255,"cost_ms":1.794},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/spotlight","frame":10,"ssim":0.997767,"tile":10,"bevy":{"batch_keys":4,"entities":530,"extents":["0.0500 0.0500 0.0500","0.1000 0.1000 0.1000","0.2500 0.2500 0.2500","50.0000 0.0000 50.0000"],"frame":10,"frame_ms":37.777,"materials":5,"mesh_entities":73,"meshes":9,"other_material":0,"visible":73},"raea":{"frame":17,"entities":582,"mesh_entities":73,"visible":73,"meshes":11,"materials":5,"batch_keys":4,"other_material":0,"extents":["0.0500 0.0500 0.0500","0.1000 0.1000 0.1000","0.2500 0.2500 0.2500","50.0000 0.0000 50.0000"],"frame_ms":4.362,"step_ms":1.518,"cost_ms":5.88},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/spotlight","frame":90,"ssim":0.996452,"tile":10,"bevy":{"batch_keys":4,"entities":530,"extents":["0.0500 0.0500 0.0500","0.1000 0.1000 0.1000","0.2500 0.2500 0.2500","50.0000 0.0000 50.0000"],"frame":90,"frame_ms":16.685,"materials":5,"mesh_entities":73,"meshes":9,"other_material":0,"visible":73},"raea":{"frame":97,"entities":582,"mesh_entities":73,"visible":73,"meshes":11,"materials":5,"batch_keys":4,"other_material":0,"extents":["0.0500 0.0500 0.0500","0.1000 0.1000 0.1000","0.2500 0.2500 0.2500","50.0000 0.0000 50.0000"],"frame_ms":3.945,"step_ms":0.626,"cost_ms":4.571},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"transforms/align","frame":10,"ssim":0.993011,"tile":11,"bevy":{"batch_keys":5,"entities":453,"extents":["1.4000 0.4500 1.1128","50.0000 0.0000 50.0000"],"frame":10,"frame_ms":37.027,"materials":6,"mesh_entities":5,"meshes":10,"other_material":0,"visible":5},"raea":{"frame":19,"entities":512,"mesh_entities":5,"visible":5,"meshes":12,"materials":6,"batch_keys":5,"other_material":0,"extents":["1.4000 0.4500 1.1128","50.0000 0.0000 50.0000"],"frame_ms":2.566,"step_ms":0.227,"cost_ms":2.793},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"transforms/align","frame":30,"ssim":0.993011,"tile":11,"bevy":{"batch_keys":5,"entities":453,"extents":["1.4000 0.4500 1.1128","50.0000 0.0000 50.0000"],"frame":30,"frame_ms":16.576,"materials":6,"mesh_entities":5,"meshes":10,"other_material":0,"visible":5},"raea":{"frame":39,"entities":512,"mesh_entities":5,"visible":5,"meshes":12,"materials":6,"batch_keys":5,"other_material":0,"extents":["1.4000 0.4500 1.1128","50.0000 0.0000 50.0000"],"frame_ms":1.841,"step_ms":0.148,"cost_ms":1.989},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/3d_viewport_to_world","frame":10,"ssim":0.998921,"tile":1,"bevy":{"batch_keys":1,"entities":442,"extents":["10.0000 0.0000 10.0000"],"frame":10,"frame_ms":16.678,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":17,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["10.0000 0.0000 10.0000"],"frame_ms":1.047,"step_ms":0.227,"cost_ms":1.274},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/3d_viewport_to_world","frame":5,"ssim":0.998921,"tile":1,"bevy":{"batch_keys":1,"entities":442,"extents":["10.0000 0.0000 10.0000"],"frame":5,"frame_ms":50.541,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":12,"entities":495,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["10.0000 0.0000 10.0000"],"frame_ms":1.978,"step_ms":0.200,"cost_ms":2.178},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/atmospheric_fog","frame":10,"ssim":0.998688,"tile":9,"bevy":{"batch_keys":2,"entities":449,"extents":["1.0000 0.1674 1.0026","1.0000 0.5000 0.5000"],"frame":10,"frame_ms":16.849,"materials":3,"mesh_entities":3,"meshes":7,"other_material":0,"visible":3},"raea":{"frame":19,"entities":504,"mesh_entities":3,"visible":3,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["1.0000 0.1674 1.0026","1.0000 0.5000 0.5000"],"frame_ms":2.116,"step_ms":0.245,"cost_ms":2.361},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/atmospheric_fog","frame":5,"ssim":0.998688,"tile":9,"bevy":{"batch_keys":2,"entities":449,"extents":["1.0000 0.1674 1.0026","1.0000 0.5000 0.5000"],"frame":5,"frame_ms":52.768,"materials":3,"mesh_entities":3,"meshes":7,"other_material":0,"visible":3},"raea":{"frame":14,"entities":504,"mesh_entities":3,"visible":3,"meshes":9,"materials":3,"batch_keys":2,"other_material":0,"extents":["1.0000 0.1674 1.0026","1.0000 0.5000 0.5000"],"frame_ms":2.45,"step_ms":0.350,"cost_ms":2.8},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/rotate_to_cursor","frame":10,"ssim":0.999835,"tile":3,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":10,"frame_ms":16.603,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.994,"step_ms":0.127,"cost_ms":1.121},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/rotate_to_cursor","frame":5,"ssim":0.999835,"tile":3,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":5,"frame_ms":49.514,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":494,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.925,"step_ms":0.167,"cost_ms":2.092},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"movement/smooth_follow","frame":120,"ssim":0.998129,"tile":0,"bevy":{"batch_keys":3,"entities":448,"extents":["0.2983 0.3000 0.3000","6.0000 0.0000 6.0000"],"frame":120,"frame_ms":16.68,"materials":4,"mesh_entities":3,"meshes":8,"other_material":0,"visible":3},"raea":{"frame":127,"entities":497,"mesh_entities":3,"visible":3,"meshes":9,"materials":4,"batch_keys":3,"other_material":0,"extents":["0.2983 0.3000 0.3000","6.0000 0.0000 6.0000"],"frame_ms":1.331,"step_ms":0.116,"cost_ms":1.447},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"movement/smooth_follow","frame":30,"ssim":0.998157,"tile":0,"bevy":{"batch_keys":3,"entities":448,"extents":["0.2983 0.3000 0.3000","6.0000 0.0000 6.0000"],"frame":30,"frame_ms":23.479,"materials":4,"mesh_entities":3,"meshes":8,"other_material":0,"visible":3},"raea":{"frame":37,"entities":497,"mesh_entities":3,"visible":3,"meshes":9,"materials":4,"batch_keys":3,"other_material":0,"extents":["0.2983 0.3000 0.3000","6.0000 0.0000 6.0000"],"frame_ms":1.654,"step_ms":0.213,"cost_ms":1.867},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/mesh_ray_cast","frame":300,"ssim":0.999715,"tile":1,"bevy":{"batch_keys":1,"entities":447,"extents":["0.5000 0.0000 0.5000"],"frame":300,"frame_ms":17.383,"materials":2,"mesh_entities":6,"meshes":6,"other_material":0,"visible":6},"raea":{"frame":307,"entities":4658,"mesh_entities":6,"visible":6,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.0000 0.5000"],"frame_ms":1.523,"step_ms":3.885,"cost_ms":5.408},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/mesh_ray_cast","frame":900,"ssim":0.999608,"tile":1,"bevy":{"batch_keys":1,"entities":447,"extents":["0.5000 0.0000 0.5000"],"frame":900,"frame_ms":16.664,"materials":2,"mesh_entities":6,"meshes":6,"other_material":0,"visible":6},"raea":{"frame":907,"entities":44258,"mesh_entities":6,"visible":6,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.0000 0.5000"],"frame_ms":3.464,"step_ms":1.418,"cost_ms":4.882},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/mesh2d_alpha_mode","frame":10,"ssim":0.989355,"tile":8,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":10,"frame_ms":16.51,"materials":1,"mesh_entities":0,"meshes":6,"other_material":0,"visible":0},"raea":{"frame":17,"entities":499,"mesh_entities":0,"visible":0,"meshes":13,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.2,"step_ms":0.127,"cost_ms":1.327},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/mesh2d_alpha_mode","frame":5,"ssim":0.989355,"tile":8,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":5,"frame_ms":49.919,"materials":1,"mesh_entities":0,"meshes":6,"other_material":0,"visible":0},"raea":{"frame":12,"entities":499,"mesh_entities":0,"visible":0,"meshes":13,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.1,"step_ms":0.167,"cost_ms":2.267},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/lightmaps","frame":10,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":6,"entities":453,"extents":["0.0001 274.4000 279.6000","102.6464 82.5000 102.6464","103.2390 165.0000 103.2390","278.0000 274.4000 279.6001","3.2000 274.4000 279.6000","65.0000 0.0000 52.5000"],"frame":10,"frame_ms":16.538,"materials":6,"mesh_entities":6,"meshes":11,"other_material":0,"visible":6},"raea":{"frame":19,"entities":506,"mesh_entities":6,"visible":6,"meshes":13,"materials":10,"batch_keys":6,"other_material":0,"extents":["0.0001 274.4000 279.6000","102.6464 82.5000 102.6464","103.2390 165.0000 103.2390","278.0000 274.4000 279.6001","3.2000 274.4000 279.6000","65.0000 0.0000 52.5000"],"frame_ms":1.5,"step_ms":0.227,"cost_ms":1.727},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"3d/lightmaps","frame":5,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":6,"entities":453,"extents":["0.0001 274.4000 279.6000","102.6464 82.5000 102.6464","103.2390 165.0000 103.2390","278.0000 274.4000 279.6001","3.2000 274.4000 279.6000","65.0000 0.0000 52.5000"],"frame":5,"frame_ms":58.916,"materials":6,"mesh_entities":6,"meshes":11,"other_material":0,"visible":6},"raea":{"frame":14,"entities":506,"mesh_entities":6,"visible":6,"meshes":13,"materials":10,"batch_keys":6,"other_material":0,"extents":["0.0001 274.4000 279.6000","102.6464 82.5000 102.6464","103.2390 165.0000 103.2390","278.0000 274.4000 279.6001","3.2000 274.4000 279.6000","65.0000 0.0000 52.5000"],"frame_ms":2.05,"step_ms":0.200,"cost_ms":2.25},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/styling/transparency_ui","frame":10,"ssim":0.999700,"tile":3,"bevy":{"batch_keys":0,"entities":445,"extents":[],"frame":10,"frame_ms":17.024,"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.039,"step_ms":0.136,"cost_ms":1.175},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/styling/transparency_ui","frame":5,"ssim":0.999700,"tile":3,"bevy":{"batch_keys":0,"entities":445,"extents":[],"frame":5,"frame_ms":49.404,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.865,"step_ms":0.183,"cost_ms":2.048},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/layout/fixed_node","frame":10,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":444,"extents":[],"frame":10,"frame_ms":16.883,"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":0.878,"step_ms":0.200,"cost_ms":1.078},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/layout/fixed_node","frame":5,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":444,"extents":[],"frame":5,"frame_ms":49.681,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.756,"step_ms":0.167,"cost_ms":1.923},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/text/font_weights","frame":10,"ssim":0.990279,"tile":17,"bevy":{"batch_keys":0,"entities":454,"extents":[],"frame":10,"frame_ms":16.429,"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":0.876,"step_ms":0.118,"cost_ms":0.994},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/text/font_weights","frame":5,"ssim":0.990279,"tile":17,"bevy":{"batch_keys":0,"entities":454,"extents":[],"frame":5,"frame_ms":49.218,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.849,"step_ms":0.183,"cost_ms":2.032},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/text/font_variations","frame":10,"ssim":0.992845,"tile":21,"bevy":{"batch_keys":0,"entities":452,"extents":[],"frame":10,"frame_ms":16.643,"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.058,"step_ms":0.127,"cost_ms":1.185},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/text/font_variations","frame":5,"ssim":0.992845,"tile":21,"bevy":{"batch_keys":0,"entities":452,"extents":[],"frame":5,"frame_ms":53.311,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.757,"step_ms":0.200,"cost_ms":1.957},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/text/text_background_colors","frame":10,"ssim":0.997735,"tile":8,"bevy":{"batch_keys":0,"entities":505,"extents":[],"frame":10,"frame_ms":16.694,"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":0.986,"step_ms":0.127,"cost_ms":1.113},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/text/text_background_colors","frame":5,"ssim":0.997735,"tile":8,"bevy":{"batch_keys":0,"entities":505,"extents":[],"frame":5,"frame_ms":52.009,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.965,"step_ms":0.133,"cost_ms":2.098},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/text/strikethrough_and_underline","frame":10,"ssim":0.990152,"tile":14,"bevy":{"batch_keys":0,"entities":454,"extents":[],"frame":10,"frame_ms":16.545,"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":0.899,"step_ms":0.273,"cost_ms":1.172},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/text/strikethrough_and_underline","frame":5,"ssim":0.990152,"tile":14,"bevy":{"batch_keys":0,"entities":454,"extents":[],"frame":5,"frame_ms":51.687,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.149,"step_ms":0.417,"cost_ms":2.566},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/scroll_and_overflow/overflow","frame":10,"ssim":0.998143,"tile":5,"bevy":{"batch_keys":0,"entities":461,"extents":[],"frame":10,"frame_ms":16.865,"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":0.878,"step_ms":0.200,"cost_ms":1.078},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/scroll_and_overflow/overflow","frame":5,"ssim":0.998143,"tile":5,"bevy":{"batch_keys":0,"entities":461,"extents":[],"frame":5,"frame_ms":48.936,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.079,"step_ms":0.167,"cost_ms":2.246},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/mesh2d_vertex_color_texture","frame":10,"ssim":0.998651,"tile":6,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":10,"frame_ms":36.167,"materials":1,"mesh_entities":0,"meshes":6,"other_material":0,"visible":0},"raea":{"frame":17,"entities":495,"mesh_entities":0,"visible":0,"meshes":9,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.979,"step_ms":0.155,"cost_ms":1.134},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"2d/mesh2d_repeated_texture","frame":10,"ssim":0.991205,"tile":17,"bevy":{"batch_keys":0,"entities":437,"extents":[],"frame":10,"frame_ms":27.651,"materials":1,"mesh_entities":0,"meshes":8,"other_material":0,"visible":0},"raea":{"frame":17,"entities":496,"mesh_entities":0,"visible":0,"meshes":10,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.477,"step_ms":0.227,"cost_ms":1.704},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/layout/flex_layout","frame":10,"ssim":0.990851,"tile":8,"bevy":{"batch_keys":0,"entities":602,"extents":[],"frame":10,"frame_ms":34.72,"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":0.894,"step_ms":0.082,"cost_ms":0.976},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/scroll_and_overflow/overflow_clip_margin","frame":10,"ssim":0.996801,"tile":9,"bevy":{"batch_keys":0,"entities":465,"extents":[],"frame":10,"frame_ms":34.201,"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":0.959,"step_ms":0.182,"cost_ms":1.141},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/images/image_node","frame":10,"ssim":0.999893,"tile":1,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":10,"frame_ms":16.562,"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.002,"step_ms":0.145,"cost_ms":1.147},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/images/image_node","frame":5,"ssim":0.999893,"tile":1,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":5,"frame_ms":48.07,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.766,"step_ms":0.200,"cost_ms":1.966},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/images/ui_texture_atlas","frame":10,"ssim":0.999601,"tile":7,"bevy":{"batch_keys":0,"entities":445,"extents":[],"frame":10,"frame_ms":16.378,"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":0.832,"step_ms":0.127,"cost_ms":0.959},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/images/ui_texture_atlas","frame":5,"ssim":0.999601,"tile":7,"bevy":{"batch_keys":0,"entities":445,"extents":[],"frame":5,"frame_ms":48.378,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":492,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.981,"step_ms":0.183,"cost_ms":2.164},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/images/ui_texture_slice","frame":10,"ssim":0.998957,"tile":8,"bevy":{"batch_keys":0,"entities":447,"extents":[],"frame":10,"frame_ms":34.134,"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":0.943,"step_ms":0.145,"cost_ms":1.088},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
+{"example":"ui/images/ui_texture_slice_flip_and_tile","frame":10,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":461,"extents":[],"frame":10,"frame_ms":34.186,"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":0.895,"step_ms":0.200,"cost_ms":1.095},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}
diff --git a/engine/render/src/engine/spawn.rs b/engine/render/src/engine/spawn.rs
index 14a7b641..17f01b82 100644
--- a/engine/render/src/engine/spawn.rs
+++ b/engine/render/src/engine/spawn.rs
@@ -323,7 +323,7 @@ pub(crate) fn spawn_3d(world: &mut World, e: Entity, t: &Tup, inserted: &[Tup],
"shape2d" => {
// its ColorMaterial's texture, found and decoded as a sprite's picture
let tex = match vals.get("texture") {
- Some(V::S(s)) => { let pic = scene3d::panel_picture(s, inserted, dir).map_err(|e| format!("shape2d {}: {e}", t.id))?; let (pw, ph) = pic.dimensions(); Some(world.resource_mut::<Assets<Image>>().add(sprite2d::sprite_image(pw, ph, pic.into_raw()))) }
+ Some(V::S(s)) => { let pic = scene3d::panel_picture(s, inserted, dir).map_err(|e| format!("shape2d {}: {e}", t.id))?; let (pw, ph) = pic.dimensions(); Some(world.resource_mut::<Assets<Image>>().add(sprite2d::shape_image(pw, ph, pic.into_raw(), vals).map_err(|e| format!("shape2d {}: texture's {e}", t.id))?)) }
_ => None,
};
sprite2d::spawn_shape(world, e, t, tex)
diff --git a/runtime/page/src/elements.rs b/runtime/page/src/elements.rs
index db88ac74..ce0775e1 100644
--- a/runtime/page/src/elements.rs
+++ b/runtime/page/src/elements.rs
@@ -213,8 +213,11 @@ pub(crate) fn page_props(kind: &str, props: Option<&Map<String, Value>>, dir: &P
let Some(p) = props else { return out };
for (k, v) in p {
// (a <Sequence>'s data-raea-start kept: its CSS animations run from there, raea-runtime-js's src/anim.rs; a bevy_ui
- // <Text>'s data-raea-bevy-text kept: Blitz measures its block as bevy_text does, vendor/blitz-dom layout/inline.rs)
- if k == "children" || k == "key" || (k.starts_with("data-raea") && k != "data-raea-start" && k != "data-raea-bevy-text") || k == "data-props" || k == "data-shape" || k == "data-anim" || v.is_null() {
+ // <Text>'s data-raea-bevy-text kept: Blitz measures its block as bevy_text does, vendor/blitz-dom layout/inline.rs;
+ // a sliced ImageNode's data-raea-bevy-slice kept: Blitz scales and tiles its border-image as bevy_ui does,
+ // vendor/blitz-paint render/border_image.rs;
+ // the source stamps data-raea-loc and data-raea-use kept for the render manifest, engine/bundle stamp.rs)
+ if k == "children" || k == "key" || (k.starts_with("data-raea") && k != "data-raea-start" && k != "data-raea-bevy-text" && k != "data-raea-bevy-slice" && k != "data-raea-loc" && k != "data-raea-use") || k == "data-props" || k == "data-shape" || k == "data-anim" || v.is_null() {
continue;
}
if k.starts_with("on") && k.chars().nth(2).is_some_and(|c| c.is_ascii_uppercase()) {
@@ -225,7 +228,9 @@ pub(crate) fn page_props(kind: &str, props: Option<&Map<String, Value>>, dir: &P
}
if k == "style" {
if let Value::Object(st) = v {
- out.insert(k.clone(), Value::Object(st.iter().filter(|(_, v)| !v.is_null()).map(|(k, v)| (k.clone(), v.clone())).collect()));
+ // a url("x.png") in a value (a background, a border-image, a mask) found as an img's src is
+ let kept = st.iter().filter(|(_, v)| !v.is_null()).map(|(k, v)| (k.clone(), v.as_str().filter(|s| s.contains("url(")).map_or_else(|| v.clone(), |s| Value::String(css_urls(dir, s)))));
+ out.insert(k.clone(), Value::Object(kept.collect()));
}
continue;
}
@@ -246,3 +251,42 @@ pub(crate) fn page_props(kind: &str, props: Option<&Map<String, Value>>, dir: &P
}
out
}
+
+/// A CSS value with each `url(..)` that names a media file (not a URL with a scheme, nor a data: URI) turned into
+/// that file's path, as an img's src is (a background or a border-image of staticFile("x.png")).
+fn css_urls(dir: &Path, s: &str) -> String {
+ let mut out = String::with_capacity(s.len());
+ let mut rest = s;
+ while let Some(at) = rest.find("url(") {
+ out.push_str(&rest[..at + 4]);
+ rest = &rest[at + 4..];
+ let Some(end) = rest.find(')') else { break };
+ let inner = rest[..end].trim();
+ let quote = inner.chars().next().filter(|c| *c == '"' || *c == '\'');
+ let path = quote.map_or(inner, |q| inner.trim_matches(q));
+ if path.contains("://") || path.starts_with("data:") || path.is_empty() {
+ out.push_str(&rest[..end]);
+ } else {
+ let file = raea_runtime_react::scene::media_path(dir, path);
+ if !file.exists() {
+ REFUSED.with(|c| c.borrow_mut().push(format!("missing image: {}", file.display())));
+ }
+ out.push_str(&format!("\"{}\"", raea_io_home::src(&file)));
+ }
+ rest = &rest[end..];
+ }
+ out.push_str(rest);
+ out
+}
+
+#[cfg(test)]
+mod css_url_tests {
+ #[test]
+ fn a_media_url_becomes_its_path_and_others_stay() {
+ let dir = std::env::temp_dir();
+ let out = super::css_urls(&dir, r#"url("a.png") , url(https://x.io/b.png), url('data:image/png;base64,AA')"#);
+ let file = raea_io_home::src(&raea_runtime_react::scene::media_path(&dir, "a.png"));
+ assert_eq!(out, format!(r#"url("{file}") , url(https://x.io/b.png), url('data:image/png;base64,AA')"#));
+ assert_eq!(super::css_urls(&dir, "linear-gradient(red, blue)"), "linear-gradient(red, blue)");
+ }
+}
diff --git a/runtime/scene/src/sprite2d.rs b/runtime/scene/src/sprite2d.rs
index 1bc12584..96110792 100644
--- a/runtime/scene/src/sprite2d.rs
+++ b/runtime/scene/src/sprite2d.rs
@@ -63,12 +63,11 @@ pub(super) fn shapes(tracks: &[Track], p: &mut Program) {
row.insert("w".into(), V::N(at(0)));
row.insert("h".into(), V::N(at(1)));
row.insert("sides".into(), V::N(n(first, "sides", 5.0)));
- // its ColorMaterial's texture and AlphaMode2d ("opaque", "blend", or "mask" with its cutoff)
- if let Some(t) = first.get("texture").and_then(Value::as_str) {
- row.insert("texture".into(), V::S(src_path(t)));
- }
- // its mesh's Mesh::ATTRIBUTE_COLOR: linear [r, g, b, a] per vertex, as JSON
- if let Some(cs) = first.get("vertex_colors").filter(|c| c.is_array()) { row.insert("vertex_colors".into(), V::S(cs.to_string())); }
+ // its ColorMaterial's texture (a path, or { path, sampler }) and AlphaMode2d ("opaque", "blend", or "mask" with its cutoff)
+ let tex = first.get("texture");
+ if let Some(t) = tex.and_then(|t| t.as_str().or(t.get("path").and_then(Value::as_str))) { row.insert("texture".into(), V::S(src_path(t))); }
+ // as JSON: the texture's sampler (raea-sys-sampler's), the uv_transform (an Affine2) and the mesh's Mesh::ATTRIBUTE_COLOR
+ for (col, v) in [("texture_sampler", tex.and_then(|t| t.get("sampler"))), ("uv_transform", first.get("uv_transform")), ("vertex_colors", first.get("vertex_colors"))] { if let Some(v) = v { row.insert(col.into(), V::S(v.to_string())); } }
match first.get("alpha_mode") {
Some(Value::String(a)) => { row.insert("alpha".into(), V::S(a.to_lowercase())); }
Some(Value::Object(m)) => { row.insert("alpha".into(), V::S("mask".into())); row.insert("alpha_cutoff".into(), V::N(n(m, "Mask", 0.5))); }
diff --git a/sdk/raea/bench/bevy-parity/2d/mesh2d_repeated_texture.tsx b/sdk/raea/bench/bevy-parity/2d/mesh2d_repeated_texture.tsx
new file mode 100644
index 00000000..ef14e1c9
--- /dev/null
+++ b/sdk/raea/bench/bevy-parity/2d/mesh2d_repeated_texture.tsx
@@ -0,0 +1,40 @@
+// Bevy v0.20.0 examples/2d/mesh2d_repeated_texture.rs in raea's TSX (docs/control.feature FC0a): three 200 px
+// Rectangles with a ColorMaterial texture, each labelled by a Text2d 125 px above its centre. "Control" at x 0 has
+// panel-border-010.png on its default sampler. "Repeat On" at x -250 has panel-border-010-repeated.png loaded with
+// ImageSamplerDescriptor { address_mode_u/v: Repeat, ..default() } (whose filters are nearest) and a uv_transform of
+// Affine2::from_scale(2, 3). "Repeat Off" at x 250 has the first picture with the same uv_transform, so its edges
+// clamp. On Bevy's default clear colour, in Bevy's default 1280 x 720 window.
+import { AbsoluteFill, Composition, registerRoot, staticFile } from "raea";
+import { Canvas3D } from "raea/3d";
+import { Transform } from "raea/transform";
+import { Affine2 } from "raea/math";
+import { ColorMaterial, Mesh2d, Rectangle } from "raea/sprite";
+import { Text2d } from "raea/ui";
+
+const SIDE = 200, OFFSET = 250, LABEL = SIDE / 2 + 25;
+const PLAIN = staticFile("textures/fantasy_ui_borders/panel-border-010.png");
+// ImageSamplerDescriptor's own defaults are nearest filters; the example sets only the address modes
+const REPEATED = { path: staticFile("textures/fantasy_ui_borders/panel-border-010-repeated.png"), sampler: { wrap: "repeat", filter: "nearest", mipmap: "nearest" } } as const;
+const PANELS = [
+ { x: 0, label: "Control", texture: PLAIN, uv: undefined },
+ { x: -OFFSET, label: "Repeat On", texture: REPEATED, uv: Affine2.fromScale([2, 3]) },
+ { x: OFFSET, label: "Repeat Off", texture: PLAIN, uv: Affine2.fromScale([2, 3]) },
+];
+
+function Shot() {
+ return (
+ <AbsoluteFill>
+ <Canvas3D layered clearColor="rgb(43, 44, 47)">
+ {PANELS.map((p) => (
+ <Mesh2d key={p.label} transform={Transform.fromXyz(p.x, 0, 0)}>
+ <Rectangle half_size={[SIDE / 2, SIDE / 2]} />
+ <ColorMaterial texture={p.texture} uv_transform={p.uv} />
+ </Mesh2d>
+ ))}
+ </Canvas3D>
+ {PANELS.map((p) => <Text2d key={p.label} transform={Transform.fromXyz(p.x, LABEL, 0)}>{p.label}</Text2d>)}
+ </AbsoluteFill>
+ );
+}
+
+registerRoot(() => <Composition id="main" component={Shot} durationInFrames={11} fps={60} width={1280} height={720} />);
diff --git a/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice.tsx b/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice.tsx
new file mode 100644
index 00000000..0285a7d6
--- /dev/null
+++ b/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice.tsx
@@ -0,0 +1,31 @@
+// Bevy v0.20.0 examples/ui/images/ui_texture_slice.rs in raea's TSX (docs/control.feature FC0a): a full-window node
+// centring three buttons, 150 x 150, 300 x 150 and 150 x 300 with 20 px margins, each an ImageNode of
+// panel-border-010.png sliced by a TextureSlicer (22 px borders, sides and centre stretched, max_corner_scale 1) and
+// holding "Button" in FiraSans-Bold 33 px, 0.9 grey. Their hover and press styles see no pointer here. Bevy's
+// Camera2d over the default clear colour is the layered <Canvas3D>. In Bevy's default 1280 x 720 window.
+import { AbsoluteFill, Composition, registerRoot, staticFile } from "raea";
+import { Canvas3D } from "raea/3d";
+import { ImageNode, Node, Text, UiRect, percent, px, type TextureSlicer } from "raea/ui";
+import { Srgba } from "raea/color";
+
+const IMAGE = staticFile("textures/fantasy_ui_borders/panel-border-010.png");
+const FONT = staticFile("fonts/FiraSans-Bold.ttf");
+const SLICER: TextureSlicer = { border: { left: 22, right: 22, top: 22, bottom: 22 }, center_scale_mode: "Stretch", sides_scale_mode: "Stretch", max_corner_scale: 1 };
+const SIZES = [[150, 150], [300, 150], [150, 300]];
+
+function Shot() {
+ return (
+ <AbsoluteFill>
+ <Canvas3D layered clearColor="rgb(43, 44, 47)" />
+ <Node width={percent(100)} height={percent(100)} align_items="Center" justify_content="Center">
+ {SIZES.map(([w, h]) => (
+ <ImageNode key={`${w}x${h}`} image={IMAGE} image_mode={{ Sliced: SLICER }} width={px(w)} height={px(h)} justify_content="Center" align_items="Center" margin={UiRect.all(px(20))}>
+ <Text font={FONT} font_size={{ Px: 33 }} color={new Srgba(0.9, 0.9, 0.9)}>Button</Text>
+ </ImageNode>
+ ))}
+ </Node>
+ </AbsoluteFill>
+ );
+}
+
+registerRoot(() => <Composition id="main" component={Shot} durationInFrames={11} fps={60} width={1280} height={720} />);
diff --git a/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice_flip_and_tile.tsx b/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice_flip_and_tile.tsx
new file mode 100644
index 00000000..f4fc7346
--- /dev/null
+++ b/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice_flip_and_tile.tsx
@@ -0,0 +1,30 @@
+// Bevy v0.20.0 examples/ui/images/ui_texture_slice_flip_and_tile.rs in raea's TSX (docs/control.feature FC0a): at
+// UiScale 2, a full-window wrapping row (centred, 10 px gaps) of twenty ImageNodes of numbered_slices.png, loaded
+// with a nearest sampler and sliced by a TextureSlicer (16 px borders, sides and centre tiled at stretch_value 1):
+// for each of 3 x 3, 4 x 4, 5 x 4, 4 x 5 and 5 x 5 cells of 16 px, unflipped, flip_y, flip_x and both. Bevy's
+// Camera2d over the default clear colour is the layered <Canvas3D>. In Bevy's default 1280 x 720 window.
+import { AbsoluteFill, Composition, registerRoot, staticFile } from "raea";
+import { Canvas3D } from "raea/3d";
+import { ImageNode, Node, UiScale, percent, px, type TextureSlicer } from "raea/ui";
+
+const IMAGE = { path: staticFile("textures/fantasy_ui_borders/numbered_slices.png"), sampler: { filter: "nearest" as const } };
+const SLICER: TextureSlicer = { border: { left: 16, right: 16, top: 16, bottom: 16 }, center_scale_mode: { Tile: { stretch_value: 1 } }, sides_scale_mode: { Tile: { stretch_value: 1 } } };
+const GRIDS = [[3, 3], [4, 4], [5, 4], [4, 5], [5, 5]];
+const FLIPS = [[false, false], [false, true], [true, false], [true, true]];
+
+function Shot() {
+ return (
+ <AbsoluteFill>
+ <Canvas3D layered clearColor="rgb(43, 44, 47)" />
+ <UiScale value={2}>
+ <Node width={percent(100)} height={percent(100)} justify_content="Center" align_content="Center" flex_wrap="Wrap" column_gap={px(10)} row_gap={px(10)}>
+ {GRIDS.flatMap(([columns, rows]) => FLIPS.map(([flip_x, flip_y]) => (
+ <ImageNode key={`${columns}x${rows}${flip_x}${flip_y}`} image={IMAGE} flip_x={flip_x} flip_y={flip_y} image_mode={{ Sliced: SLICER }} width={px(16 * columns)} height={px(16 * rows)} />
+ )))}
+ </Node>
+ </UiScale>
+ </AbsoluteFill>
+ );
+}
+
+registerRoot(() => <Composition id="main" component={Shot} durationInFrames={11} fps={60} width={1280} height={720} />);
diff --git a/sdk/raea/bench/bevy-parity/ui/layout/flex_layout.tsx b/sdk/raea/bench/bevy-parity/ui/layout/flex_layout.tsx
new file mode 100644
index 00000000..89d73115
--- /dev/null
+++ b/sdk/raea/bench/bevy-parity/ui/layout/flex_layout.tsx
@@ -0,0 +1,53 @@
+// Bevy v0.20.0 examples/ui/layout/flex_layout.rs in raea's TSX (docs/control.feature FC0a): a full-window black column
+// (padding and row gap 12 px, items centred) holding a legend, "AlignItems" in pink and "JustifyContent" in blue, and
+// a grid of 5 rows (AlignItems Baseline, FlexStart, Center, FlexEnd, Stretch) by 6 columns (JustifyContent FlexStart,
+// Center, FlexEnd, SpaceEvenly, SpaceAround, SpaceBetween), each cell a grey column node laid out by its pair and
+// holding the pair's two labels. Every label is black FiraSans-Bold at Bevy's default size on its colour, padded 5 x 1.
+// Bevy's Camera2d over the default clear colour is the layered <Canvas3D>. In Bevy's default 1280 x 720 window.
+import { AbsoluteFill, Composition, registerRoot, staticFile } from "raea";
+import { Canvas3D } from "raea/3d";
+import { Node, Text, UiRect, percent, px, type UiRect as Rect } from "raea/ui";
+import { Srgba } from "raea/color";
+
+const ALIGN_ITEMS_COLOR = new Srgba(1, 0.066, 0.349), JUSTIFY_CONTENT_COLOR = new Srgba(0.102, 0.522, 1);
+const BLACK = new Srgba(0, 0, 0), GREY = new Srgba(0.25, 0.25, 0.25);
+const MARGIN = px(12);
+const FONT = staticFile("fonts/FiraSans-Bold.ttf");
+const JUSTIFICATIONS = ["FlexStart", "Center", "FlexEnd", "SpaceEvenly", "SpaceAround", "SpaceBetween"] as const;
+const ALIGNMENTS = ["Baseline", "FlexStart", "Center", "FlexEnd", "Stretch"] as const;
+
+function Label({ color, margin, text }: { color: Srgba; margin: Rect; text: string }) {
+ return (
+ <Node margin={margin} padding={UiRect.axes(px(5), px(1))} background_color={color}>
+ <Text font={FONT} color={BLACK}>{text}</Text>
+ </Node>
+ );
+}
+
+function Shot() {
+ return (
+ <AbsoluteFill>
+ <Canvas3D layered clearColor="rgb(43, 44, 47)" />
+ <Node width={percent(100)} height={percent(100)} flex_direction="Column" align_items="Center" padding={UiRect.all(MARGIN)} row_gap={MARGIN} background_color={BLACK}>
+ <Node flex_direction="Row">
+ <Label color={ALIGN_ITEMS_COLOR} margin={UiRect.right(MARGIN)} text="AlignItems" />
+ <Label color={JUSTIFY_CONTENT_COLOR} margin={UiRect.all(px(0))} text="JustifyContent" />
+ </Node>
+ <Node width={percent(100)} height={percent(100)} flex_direction="Column" row_gap={MARGIN}>
+ {ALIGNMENTS.map((align_items) => (
+ <Node key={align_items} width={percent(100)} height={percent(100)} flex_direction="Row" column_gap={MARGIN}>
+ {JUSTIFICATIONS.map((justify_content) => (
+ <Node key={justify_content} flex_direction="Column" align_items={align_items} justify_content={justify_content} width={percent(100)} height={percent(100)} background_color={GREY}>
+ <Label color={ALIGN_ITEMS_COLOR} margin={UiRect.top(px(0))} text={align_items} />
+ <Label color={JUSTIFY_CONTENT_COLOR} margin={UiRect.top(px(3))} text={justify_content} />
+ </Node>
+ ))}
+ </Node>
+ ))}
+ </Node>
+ </Node>
+ </AbsoluteFill>
+ );
+}
+
+registerRoot(() => <Composition id="main" component={Shot} durationInFrames={11} fps={60} width={1280} height={720} />);
diff --git a/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/overflow_clip_margin.tsx b/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/overflow_clip_margin.tsx
new file mode 100644
index 00000000..89ad5231
--- /dev/null
+++ b/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/overflow_clip_margin.tsx
@@ -0,0 +1,41 @@
+// Bevy v0.20.0 examples/ui/scroll_and_overflow/overflow_clip_margin.rs in raea's TSX (docs/control.feature FC0a): on a
+// full-window css ANTIQUE_WHITE column (centred, row gap 40), four rows, one per OverflowClipMargin: border_box()
+// with_margin(25), border_box(), padding_box() and content_box(). Each row is its margin's Debug text in a grey box,
+// beside a 100 x 100 GRAY node (padding 20, black border 5, Overflow::clip()) clipping a LIGHT_CYAN 50 px node that
+// holds a 100 px branding/icon.png, so each shows its clip box. Bevy's Camera2d over the default clear colour is the
+// layered <Canvas3D>. In Bevy's default 1280 x 720 window.
+import { AbsoluteFill, Composition, registerRoot, staticFile } from "raea";
+import { Canvas3D } from "raea/3d";
+import { ImageNode, Node, Overflow, OverflowClipMargin, Text, UiRect, percent, px } from "raea/ui";
+import { Srgba } from "raea/color";
+
+const ANTIQUE_WHITE = new Srgba(0.98, 0.922, 0.843), GRAY = new Srgba(0.5019608, 0.5019608, 0.5019608);
+const LIGHT_CYAN = new Srgba(0.878, 1, 1), DARK = new Srgba(0.25, 0.25, 0.25), BLACK = new Srgba(0, 0, 0);
+const ICON = staticFile("branding/icon.png");
+const MARGINS = [OverflowClipMargin.border_box().with_margin(25), OverflowClipMargin.border_box(), OverflowClipMargin.padding_box(), OverflowClipMargin.content_box()];
+// Rust's {:#?} of the margin
+const debug = (m: { visual_box: string; margin: number }) => `OverflowClipMargin {\n visual_box: ${m.visual_box},\n margin: ${m.margin.toFixed(1)},\n}`;
+
+function Shot() {
+ return (
+ <AbsoluteFill>
+ <Canvas3D layered clearColor="rgb(43, 44, 47)" />
+ <Node width={percent(100)} height={percent(100)} align_items="Center" justify_content="Center" row_gap={px(40)} flex_direction="Column" background_color={ANTIQUE_WHITE}>
+ {MARGINS.map((m, i) => (
+ <Node key={i} flex_direction="Row" column_gap={px(20)}>
+ <Node padding={UiRect.all(px(10))} margin={UiRect.bottom(px(25))} background_color={DARK}>
+ <Text>{debug(m)}</Text>
+ </Node>
+ <Node margin={UiRect.top(px(10))} width={px(100)} height={px(100)} padding={UiRect.all(px(20))} border={UiRect.all(px(5))} overflow={Overflow.clip()} overflow_clip_margin={{ visual_box: m.visual_box, margin: m.margin }} background_color={GRAY} border_color={BLACK}>
+ <Node min_width={px(50)} min_height={px(50)} background_color={LIGHT_CYAN}>
+ <ImageNode image={ICON} min_width={px(100)} min_height={px(100)} />
+ </Node>
+ </Node>
+ </Node>
+ ))}
+ </Node>
+ </AbsoluteFill>
+ );
+}
+
+registerRoot(() => <Composition id="main" component={Shot} durationInFrames={11} fps={60} width={1280} height={720} />);
diff --git a/sdk/raea/conformance/bevy3d.test.tsx b/sdk/raea/conformance/bevy3d.test.tsx
index 6624fb81..0db117a1 100644
--- a/sdk/raea/conformance/bevy3d.test.tsx
+++ b/sdk/raea/conformance/bevy3d.test.tsx
@@ -398,6 +398,16 @@ describe("S2a's last Bevy names: Mesh2d with a primitive and a ColorMaterial, an
expect(html(<Shape2D shape="circle" vertex_colors={[[1, 1, 1, 1]]} />)).toContain("vertex_colors");
expect(() => html(<Shape2D vertex_colors={[[1, 0, 0]] as never} />)).toThrow(/one linear \[r, g, b, a\]/);
});
+ test("a ColorMaterial's uv_transform and a texture with its own sampler reach the Shape2D (mesh2d_repeated_texture)", () => {
+ const tex = { path: "panel.png", sampler: { wrap: "repeat" as const } };
+ const uv = { scale: [2, 3] as [number, number], angle: 0, translation: [0, 0] as [number, number] };
+ expect(html(<Mesh2d><Rectangle /><ColorMaterial texture={tex} uv_transform={uv} /></Mesh2d>))
+ .toBe(html(<Shape2D shape="rect" size={[1, 1]} color="#ffffff" texture={tex} uv_transform={uv} x={160} y={120} z={0} rotation={0} scale={1} />));
+ expect(html(<Mesh2d><Rectangle /><ColorMaterial texture="panel.png" /></Mesh2d>)).not.toContain("uv_transform");
+ expect(() => html(<Shape2D texture={{ path: "panel.png", sampler: { wrap: "tile" as never } }} />)).toThrow(/sampler.wrap/);
+ expect(() => html(<Shape2D texture={{ path: "", sampler: {} }} />)).toThrow(/or \{ path, sampler \}/);
+ expect(() => html(<Shape2D uv_transform={{ scale: [2], angle: 0, translation: [0, 0] } as never} />)).toThrow(/uv_transform is an Affine2/);
+ });
test("ToonMaterial is the StandardMaterial with ToonExtension", () => {
expect(html(<Mesh3d><Cuboid /><ToonMaterial base_color="#c84" steps={3} rim /></Mesh3d>))
.toBe(html(<Mesh3d><Cuboid /><ExtendedMaterial base={<StandardMaterial base_color="#c84" />} extension={<ToonExtension steps={3} rim />} /></Mesh3d>));
diff --git a/sdk/raea/conformance/ui.test.tsx b/sdk/raea/conformance/ui.test.tsx
index eca16883..9b917af7 100644
--- a/sdk/raea/conformance/ui.test.tsx
+++ b/sdk/raea/conformance/ui.test.tsx
@@ -1,9 +1,11 @@
// docs/control.feature FC0a: bevy_ui's Node, Text and TextSpan on the page, with Bevy's defaults, values and blend
// (ui/styling/transparency_ui, ui/layout/fixed_node).
import { describe, expect, test } from "bun:test";
-import { BorderRadius, FontVariationTag, ImageNode, ImagePlugin, Node, TextureAtlasLayout, Overflow, Text, TextSpan, UiRect, auto, percent, px, vw } from "raea/ui";
+import { BorderRadius, FontVariationTag, ImageNode, ImagePlugin, Node, TextureAtlasLayout, Overflow, OverflowClipMargin, Text, Text2d, UiScale, TextSpan, UiRect, auto, percent, px, vw } from "raea/ui";
import { LinearRgba, Srgba } from "raea/color";
import { renderFrame } from "../src/test";
+import { Transform } from "raea/transform";
+import { Quat } from "raea/transform";
const html = (el: React.ReactElement) => renderFrame(el, { frame: 0, width: 320, height: 240, fps: 30, durationInFrames: 30 });
@@ -145,3 +147,50 @@ describe("ImageNode, Underline and Strikethrough", () => {
expect(() => html(<ImagePlugin default_sampler={"Bilinear" as never} />)).toThrow(/Linear or Nearest/);
});
});
+
+describe("Text2d: a Text in Bevy's 2D world", () => {
+ test("its block's centre is at its Transform (Anchor::CENTER), the frame's centre the origin, +Y up", () => {
+ const out = html(<Text2d transform={Transform.fromXyz(-100, 50, 0)} font_size={30}>Repeat On</Text2d>);
+ for (const s of ["left:60px", "top:70px", "transform:translate(-50%, -50%) rotate(0rad) scale(1, 1)", "font-size:30px", "data-raea-bevy-text", "Repeat On"]) expect(out).toContain(s);
+ // its Text is placed by the Text2d, not made a root of its own that fills the frame
+ expect(out.match(/width:100%;height:100%/g)?.length).toBe(1);
+ const turned = html(<Text2d transform={Transform.fromXyz(0, 0, 0).withRotation(Quat.fromRotationZ(0.5)).withScale([2, 3, 1])}>x</Text2d>);
+ expect(turned).toContain("rotate(-0.5rad) scale(2, 3)");
+ });
+});
+
+describe("OverflowClipMargin: the box an overflow clip clips to", () => {
+ test("its visual box and margin as overflow-clip-margin, Bevy's constructors, and a bad one refused", () => {
+ expect(html(<Node overflow={Overflow.clip()} overflow_clip_margin={OverflowClipMargin.border_box().with_margin(25)} />)).toContain("overflow-clip-margin:border-box 25px");
+ expect(html(<Node overflow={Overflow.clip()} overflow_clip_margin={OverflowClipMargin.content_box()} />)).toContain("overflow-clip-margin:content-box 0px");
+ expect(OverflowClipMargin.DEFAULT).toEqual({ visual_box: "PaddingBox", margin: 0 });
+ expect(html(<Node overflow={Overflow.clip()} />)).not.toContain("overflow-clip-margin");
+ expect(() => html(<Node overflow_clip_margin={{ visual_box: "MarginBox" as never, margin: 0 }} />)).toThrow(/overflow_clip_margin is/);
+ expect(() => html(<Node overflow_clip_margin={{ visual_box: "BorderBox", margin: -1 }} />)).toThrow(/px >= 0/);
+ });
+});
+
+describe("A sliced ImageNode, a sampled picture and UiScale", () => {
+ const slicer = { border: { left: 16, right: 8, top: 4, bottom: 2 }, sides_scale_mode: { Tile: { stretch_value: 1.5 } }, max_corner_scale: 2 } as const;
+ test("NodeImageMode::Sliced is CSS border-image with fill, and bevy_ui's scale modes on data-raea-bevy-slice", () => {
+ const out = html(<ImageNode image="p.png" image_mode={{ Sliced: slicer }} width={px(100)} height={px(50)}><Text>hi</Text></ImageNode>);
+ for (const s of ['border-image-source:url(&quot;p.png&quot;)', "border-image-slice:4 8 2 16 fill", "border-image-width:8px 16px 4px 32px", 'data-raea-bevy-slice="2 t1.5 s"', "hi"]) expect(out).toContain(s);
+ expect(() => html(<ImageNode image="p.png" image_mode={{ Sliced: { ...slicer, center_scale_mode: { Tile: { stretch_value: 0 } } } }} />)).toThrow(/center_scale_mode is/);
+ expect(() => html(<ImageNode image="p.png" image_mode={{ Sliced: { border: { left: -1, right: 0, top: 0, bottom: 0 } } }} />)).toThrow(/px >= 0/);
+ });
+ test("a flipped one draws its slices on a mirrored layer behind its children", () => {
+ const out = html(<ImageNode image="p.png" flip_x image_mode={{ Sliced: slicer }}><Text>hi</Text></ImageNode>);
+ for (const s of ["z-index:-1", "transform:scaleX(-1)", "position:relative", "z-index:0"]) expect(out).toContain(s);
+ expect(out.indexOf("scaleX(-1)")).toBeLessThan(out.indexOf("hi"));
+ });
+ test("an image with its own sampler is drawn by its filter, and a wrap is refused", () => {
+ expect(html(<ImageNode image={{ path: "p.png", sampler: { filter: "nearest" } }} />)).toContain("image-rendering:pixelated");
+ expect(html(<ImageNode image={{ path: "p.png", sampler: {} }} />)).not.toContain("image-rendering");
+ expect(() => html(<ImageNode image={{ path: "p.png", sampler: { wrap: "repeat" } }} />)).toThrow(/isn't wrapped/);
+ });
+ test("UiScale lays its roots out in a window 1/value of the frame and scales it up from the top left", () => {
+ const out = html(<UiScale value={2}><Node width={px(16)} /></UiScale>);
+ for (const s of ["width:50%", "height:50%", "transform:scale(2)", "transform-origin:0 0"]) expect(out).toContain(s);
+ expect(() => html(<UiScale value={0} />)).toThrow(/above 0/);
+ });
+});
diff --git a/sdk/raea/src/ui.ts b/sdk/raea/src/ui.ts
index 6c1daa29..30d7123b 100644
--- a/sdk/raea/src/ui.ts
+++ b/sdk/raea/src/ui.ts
@@ -6,4 +6,4 @@ export * from "@raea/video/region";
// InputRegion (input-region.tsx) joins when it is committed
export * from "@raea/video/panel";
// bevy_ui's Node and Text, and bevy_text's TextSpan, with their values (Val, UiRect, BorderRadius, Overflow)
-export { Node, Text, TextSpan, ImageNode, ImagePlugin, FontVariationTag, TextureAtlasLayout, type ImageNodeProps, px, percent, vw, vh, vmin, vmax, auto, UiRect, BorderRadius, Overflow, type NodeProps, type TextProps, type TextStyleProps, type TextRunProps, type Val } from "@raea/render/bevy3d";
+export { Node, Text, TextSpan, Text2d, UiScale, ImageNode, type TextureSlicer, type SliceScaleMode, ImagePlugin, FontVariationTag, TextureAtlasLayout, type ImageNodeProps, px, percent, vw, vh, vmin, vmax, auto, UiRect, BorderRadius, Overflow, OverflowClipMargin, type NodeProps, type TextProps, type TextStyleProps, type TextRunProps, type Text2dProps, type Val } from "@raea/render/bevy3d";
diff --git a/sdk/render/src/3d/sprite.tsx b/sdk/render/src/3d/sprite.tsx
index 7ea92574..91d8436c 100644
--- a/sdk/render/src/3d/sprite.tsx
+++ b/sdk/render/src/3d/sprite.tsx
@@ -1,6 +1,7 @@
// 2D over the 3D: sprites and flat shapes, drawn over the Canvas3D's 3D by a 2D camera of its own (raea-sys-sprite).
import { useId } from "react";
import { node3d } from "./core";
+import { samplerSpec, type SamplerSpec } from "./materials";
import { usePointer2d, type Flat, type PointerHandlers3d } from "../events3d";
/** Where a 2D part is: composition px from the frame's top left, y down (as the page's), its centre there; and its
@@ -71,8 +72,11 @@ export interface Shape2DProps extends Place2dProps {
sides?: number;
/** a CSS colour (white by default); with a texture, it tints it */
color?: string;
- /** a picture on it, mapped by the mesh's UVs (Bevy's ColorMaterial texture) */
- texture?: string;
+ /** a picture on it, mapped by the mesh's UVs (Bevy's ColorMaterial texture), or one with its own sampler (Bevy's
+ * load_with_settings: { path, sampler: { wrap: "repeat" } }) */
+ texture?: string | { path: string; sampler: SamplerSpec };
+ /** the texture's UVs scaled, turned and moved (ColorMaterial's uv_transform, glam's Affine2 as raea/transform's) */
+ uv_transform?: { scale: [number, number]; angle: number; translation: [number, number] };
/** Bevy's AlphaMode2d: "Blend" (Bevy's default), "Opaque", or { Mask: cutoff } */
alpha_mode?: AlphaMode2d;
/** one linear [r, g, b, a] per vertex of the shape's mesh (Bevy's Mesh::ATTRIBUTE_COLOR): the material's colour and
@@ -95,7 +99,12 @@ export function Shape2D(props: Shape2DProps) {
if (s !== undefined && !(Array.isArray(s) && s.length === 2 && s.every((n) => Number.isFinite(n) && n > 0))) throw new TypeError(`Shape2D: size is [width, height], two numbers above 0, got ${JSON.stringify(s)}`);
if (props.sides !== undefined && !(Number.isInteger(props.sides) && props.sides >= 3)) throw new RangeError(`Shape2D: sides is a whole number of 3 or more, got ${props.sides}`);
check2d("Shape2D", props);
- if (props.texture !== undefined && !(typeof props.texture === "string" && props.texture !== "")) throw new TypeError(`Shape2D: texture is a picture's path, staticFile("icon.png"), got ${JSON.stringify(props.texture)}`);
+ const tx = props.texture;
+ const sampled = typeof tx === "object" && tx !== null && typeof tx.path === "string" && tx.path !== "";
+ if (sampled) samplerSpec("Shape2D: texture", tx.sampler);
+ const u = props.uv_transform;
+ if (u !== undefined && !(Array.isArray(u.scale) && u.scale.length === 2 && u.scale.every(Number.isFinite) && Number.isFinite(u.angle) && Array.isArray(u.translation) && u.translation.length === 2 && u.translation.every(Number.isFinite))) throw new TypeError(`Shape2D: uv_transform is an Affine2 ({ scale: [x, y], angle, translation: [x, y] }), got ${JSON.stringify(u)}`);
+ if (tx !== undefined && !sampled && !(typeof tx === "string" && tx !== "")) throw new TypeError(`Shape2D: texture is a picture's path, staticFile("icon.png"), or { path, sampler }, got ${JSON.stringify(props.texture)}`);
const a = props.alpha_mode;
if (a !== undefined && a !== "Opaque" && a !== "Blend" && !(typeof a === "object" && a !== null && typeof a.Mask === "number" && Number.isFinite(a.Mask))) throw new TypeError(`Shape2D: alpha_mode is "Opaque", "Blend" or { Mask: cutoff }, got ${JSON.stringify(a)}`);
const vc = props.vertex_colors;
diff --git a/sdk/render/src/bevy3d.tsx b/sdk/render/src/bevy3d.tsx
index 042836f9..f683ee49 100644
--- a/sdk/render/src/bevy3d.tsx
+++ b/sdk/render/src/bevy3d.tsx
@@ -28,5 +28,5 @@ export { Hdr } from "./bevy3d/core";
// Lightmap (bevy_pbr::lightmap): a bake on a <Model>'s glTF meshes by name (docs/control.feature FC0a)
export { Lightmap, type LightmapProps } from "./bevy3d/lightmap";
// bevy_ui's Node, Text and TextSpan, and their values, drawn by the page (docs/control.feature FC0a)
-export { Node, Text, TextSpan, ImageNode, ImagePlugin, FontVariationTag, TextureAtlasLayout, type NodeProps, type TextProps, type TextStyleProps, type TextRunProps, type ImageNodeProps } from "./bevy3d/ui";
-export { px, percent, vw, vh, vmin, vmax, auto, UiRect, BorderRadius, Overflow, type Val } from "./bevy3d/ui-val";
+export { Node, Text, TextSpan, Text2d, UiScale, ImageNode, type TextureSlicer, type SliceScaleMode, ImagePlugin, FontVariationTag, TextureAtlasLayout, type NodeProps, type TextProps, type TextStyleProps, type TextRunProps, type Text2dProps, type ImageNodeProps } from "./bevy3d/ui";
+export { px, percent, vw, vh, vmin, vmax, auto, UiRect, BorderRadius, Overflow, OverflowClipMargin, type Val } from "./bevy3d/ui-val";
diff --git a/sdk/render/src/bevy3d/mesh2d.tsx b/sdk/render/src/bevy3d/mesh2d.tsx
index 8566fb1d..fdde0ed2 100644
--- a/sdk/render/src/bevy3d/mesh2d.tsx
+++ b/sdk/render/src/bevy3d/mesh2d.tsx
@@ -5,7 +5,7 @@ import { Children, isValidElement, type ReactNode } from "react";
import { useVideoConfig } from "@raea/app/clock";
import { Shape2D, type AlphaMode2d, type Place2dProps, type Shape2DProps } from "../3d/sprite";
import { eulerOf } from "../3d";
-import { LinearRgba, Srgba, type TransformValue } from "./all";
+import { LinearRgba, Srgba, type Affine2, type SampledImage, type TransformValue } from "./all";
/** a primitive's mesh attributes: its Mesh::ATTRIBUTE_COLOR, one linear colour per vertex (as mesh.insert_attribute) */
export interface MeshAttributes { vertex_colors?: (LinearRgba | [number, number, number, number])[] }
@@ -16,8 +16,10 @@ export interface RegularPolygonProps extends MeshAttributes { circumcircle?: { r
export interface ColorMaterialProps {
/** white by default; it tints the texture, and its alpha is the material's (Bevy's Srgba or LinearRgba, or a hex) */
color?: string | Srgba | LinearRgba;
- /** a picture, by the mesh's UVs */
- texture?: string;
+ /** a picture, by the mesh's UVs, or one with its own sampler ({ path, sampler }, Bevy's load_with_settings) */
+ texture?: string | SampledImage;
+ /** the texture's UVs scaled, turned and moved (glam's Affine2: Affine2.fromScale([2, 3])) */
+ uv_transform?: Affine2;
/** Bevy's AlphaMode2d, "Blend" by default */
alpha_mode?: AlphaMode2d;
}
@@ -90,5 +92,5 @@ export function Mesh2d({ transform, visibility, children, ...rest }: Mesh2dProps
const s = typeof c === "string" ? undefined : c instanceof LinearRgba ? c.to_srgba() : c;
const color = s ? new Srgba(s.red, s.green, s.blue, 1).to_hex() : c as string;
const opacity = (rest.opacity ?? 1) * (s ? s.alpha : 1);
- return <Shape2D {...rest} {...shape} color={color} {...(s || rest.opacity !== undefined ? { opacity } : {})} {...(material?.texture ? { texture: material.texture } : {})} {...(material?.alpha_mode ? { alpha_mode: material.alpha_mode } : {})} x={width / 2 + tx} y={height / 2 - ty} z={tz} rotation={turn} scale={sx === sy ? sx : [sx, sy]} />;
+ return <Shape2D {...rest} {...shape} color={color} {...(s || rest.opacity !== undefined ? { opacity } : {})} {...(material?.texture ? { texture: material.texture } : {})} {...(material?.alpha_mode ? { alpha_mode: material.alpha_mode } : {})} {...(material?.uv_transform ? { uv_transform: material.uv_transform } : {})} x={width / 2 + tx} y={height / 2 - ty} z={tz} rotation={turn} scale={sx === sy ? sx : [sx, sy]} />;
}
diff --git a/sdk/render/src/bevy3d/ui-val.ts b/sdk/render/src/bevy3d/ui-val.ts
index 49d359d2..b936ead7 100644
--- a/sdk/render/src/bevy3d/ui-val.ts
+++ b/sdk/render/src/bevy3d/ui-val.ts
@@ -128,3 +128,13 @@ export function over(who: string, k: string, c: unknown, back: Backdrop): { css:
const [r, g, b] = mixed.map(toSrgb);
return { css: colorCss(who, k, new Srgba(r, g, b, 1)), back: mixed };
}
+
+/** Bevy's OverflowClipMargin: the box an overflow clip clips to, grown by a margin in px (the padding box by default). */
+export interface OverflowClipMargin { visual_box: "BorderBox" | "PaddingBox" | "ContentBox"; margin: number }
+const clipMargin = (visual_box: OverflowClipMargin["visual_box"]) => ({ visual_box, margin: 0, with_margin(margin: number) { return { visual_box, margin }; } });
+export const OverflowClipMargin = {
+ DEFAULT: { visual_box: "PaddingBox", margin: 0 } as OverflowClipMargin,
+ border_box: () => clipMargin("BorderBox"),
+ padding_box: () => clipMargin("PaddingBox"),
+ content_box: () => clipMargin("ContentBox"),
+};
diff --git a/sdk/render/src/bevy3d/ui.tsx b/sdk/render/src/bevy3d/ui.tsx
index 040b04a4..dc626946 100644
--- a/sdk/render/src/bevy3d/ui.tsx
+++ b/sdk/render/src/bevy3d/ui.tsx
@@ -7,9 +7,13 @@ import { Children, createContext, useContext, type CSSProperties, type ReactNode
import { BEVY_FONT_FAMILY, bevyFontFace } from "./fonts/default";
import {
ALIGN_CONTENT, ALIGN_ITEMS, ALIGN_SELF, DISPLAY, FLEX_DIRECTION, FLEX_WRAP, JUSTIFY_CONTENT, JUSTIFY_ITEMS, JUSTIFY_SELF, OVERFLOW_AXIS, POSITION_TYPE,
- checkVal, keyword, over, px, radiusCss, rectCss, type Backdrop, type BorderRadius, type Overflow, type UiRect, type Val,
+ checkVal, keyword, over, px, radiusCss, rectCss, type Backdrop, type BorderRadius, type Overflow, type OverflowClipMargin, type UiRect, type Val,
} from "./ui-val";
import type { LinearRgba, Srgba } from "./colors";
+import type { TransformValue } from "./core";
+import { eulerOf } from "../3d/model";
+import { samplerSpec, type SamplerSpec } from "../3d/materials";
+import { useVideoConfig } from "@raea/app/clock";
type Color = Srgba | LinearRgba | string;
@@ -34,6 +38,8 @@ export interface NodeProps {
margin?: UiRect; padding?: UiRect; border?: UiRect;
border_radius?: BorderRadius;
overflow?: Overflow;
+ /** the box its overflow clip clips to, grown by a margin (OverflowClipMargin.border_box().with_margin(25)) */
+ overflow_clip_margin?: OverflowClipMargin;
row_gap?: Val; column_gap?: Val;
background_color?: Color;
border_color?: Color;
@@ -108,15 +114,21 @@ export function nodeCss(who: string, p: NodeProps, back?: Backdrop): { css: CSSP
s.overflowX = o.x.toLowerCase();
s.overflowY = o.y.toLowerCase();
}
+ const m = p.overflow_clip_margin;
+ if (m !== undefined) {
+ if (!["BorderBox", "PaddingBox", "ContentBox"].includes(m?.visual_box) || !(Number.isFinite(m.margin) && m.margin >= 0)) throw new TypeError(`${who}: overflow_clip_margin is OverflowClipMargin.border_box(), padding_box() or content_box(), with_margin(px >= 0), got ${JSON.stringify(m)}`);
+ // CSS's overflow-clip-margin, which raea's Blitz honours for every clipping overflow, as Bevy does
+ (s as Record<string, string>).overflowClipMargin = `${m.visual_box.replace("Box", "").toLowerCase()}-box ${m.margin}px`;
+ }
return { css: s as CSSProperties, back };
}
// a root's implicit viewport (bevy_ui ui_surface.rs): a grid the window's size, its one item at the start of both axes
const VIEWPORT: CSSProperties = { position: "absolute", left: 0, top: 0, width: "100%", height: "100%", display: "grid", alignItems: "start", justifyItems: "start" };
-function boxOf(css: CSSProperties, back: Backdrop, children: ReactNode, root: boolean | "fixed", font?: ReactNode) {
+function boxOf(css: CSSProperties, back: Backdrop, children: ReactNode, root: boolean | "fixed", font?: ReactNode, attrs?: Record<string, string>) {
const inner = (
- <div style={css}>
+ <div style={css} {...attrs}>
<InUi.Provider value={{ back }}>{children}</InUi.Provider>
</div>
);
@@ -276,16 +288,26 @@ export function TextSpan({ children, underline, strikethrough, underline_color,
}
export interface ImageNodeProps extends NodeProps {
- /** the picture: staticFile("branding/icon.png") */
- image: string;
+ /** the picture: staticFile("branding/icon.png"), or one with its own sampler ({ path, sampler: { filter: "nearest" } }, Bevy's load_with_settings) */
+ image: string | { path: string; sampler: SamplerSpec };
/** its tint: white (none) by default; only white or a grey multiplies here yet (a picture's brightness) */
color?: Srgba;
flip_x?: boolean;
flip_y?: boolean;
/** TextureAtlas: the one cell of a sheet laid out by a TextureAtlasLayout to draw (the picture is the sheet) */
texture_atlas?: { layout: TextureAtlasLayout; index: number };
+ /** NodeImageMode: Sliced cuts the picture in nine by a TextureSlicer (its corners kept, its sides and centre
+ * stretched or tiled), drawn as CSS border-image with bevy_ui's scale; a sliced ImageNode holds children */
+ image_mode?: { Sliced: TextureSlicer };
}
+/** bevy_ui's SliceScaleMode: a side or the centre stretched, or tiled every slice x stretch_value px from its start */
+export type SliceScaleMode = "Stretch" | { Tile: { stretch_value: number } };
+
+/** bevy_sprite's TextureSlicer: the slices' insets in the picture's px, how the sides and centre scale (Stretch by
+ * default), and the corners' most scale (1 by default) */
+export interface TextureSlicer { border: { left: number; right: number; top: number; bottom: number }; center_scale_mode?: SliceScaleMode; sides_scale_mode?: SliceScaleMode; max_corner_scale?: number }
+
/** bevy_image's TextureAtlasLayout: a sheet's size and its cells' rects in px. @bevy bevy_image::TextureAtlasLayout */
export interface TextureAtlasLayout { size: [number, number]; textures: { x: number; y: number; w: number; h: number }[] }
export const TextureAtlasLayout = {
@@ -304,7 +326,16 @@ export const TextureAtlasLayout = {
/** bevy_ui's ImageNode: a Node showing a picture stretched over its content box (inside its padding and border),
* sized by the picture when its width or height is auto, as bevy_ui's ImageNodeSize measures it. No children (an
* <img>). @bevy bevy_ui::widget::image::ImageNode */
-export function ImageNode({ image, color, flip_x, flip_y, children, fixed, texture_atlas, ...p }: ImageNodeProps) {
+export function ImageNode({ image, color, flip_x, flip_y, children, fixed, texture_atlas, image_mode, ...p }: ImageNodeProps) {
+ // a picture with its own sampler: its filter is how it's drawn here (a UI picture is never wrapped or mipmapped)
+ const outer = useContext(Sampler);
+ if (typeof image === "object" && image !== null) {
+ const s = samplerSpec("ImageNode: image", image.sampler);
+ if (s.wrap !== undefined || s.anisotropy !== undefined) throw new TypeError("ImageNode: an image's sampler takes filter (and mipmap) here; a UI picture isn't wrapped");
+ const filter = s.filter === "nearest" ? "Nearest" : s.filter === "linear" ? "Linear" : outer;
+ return <Sampler.Provider value={filter}><ImageNode image={image.path} color={color} flip_x={flip_x} flip_y={flip_y} fixed={fixed} texture_atlas={texture_atlas} image_mode={image_mode} {...p}>{children}</ImageNode></Sampler.Provider>;
+ }
+ if (image_mode !== undefined) return SlicedNode({ image, color, flip_x, flip_y, children, fixed, texture_atlas, image_mode, ...p });
if (texture_atlas !== undefined) return AtlasNode({ image, color, flip_x, flip_y, children, fixed, texture_atlas, ...p });
if (typeof image !== "string" || image === "") throw new TypeError(`ImageNode: image is a picture file (staticFile("x.png")), got ${JSON.stringify(image)}`);
if (children !== undefined && children !== null && children !== false) throw new TypeError("ImageNode: takes no children here (a picture on a Node with children: put the ImageNode beside them)");
@@ -355,3 +386,78 @@ export function ImagePlugin({ default_sampler, children }: { default_sampler?: "
if (default_sampler !== undefined && !(default_sampler in RENDERING)) throw new TypeError(`ImagePlugin: default_sampler is Linear or Nearest, got ${JSON.stringify(default_sampler)}`);
return <Sampler.Provider value={default_sampler ?? "Linear"}>{children}</Sampler.Provider>;
}
+
+export interface Text2dProps extends TextStyleProps, TextRunProps {
+ /** its place in Bevy's 2D world: the frame's centre the origin, +Y up, a unit a pixel, turns counterclockwise */
+ transform?: TransformValue;
+ /** how its lines line up with each other (TextLayout's Justify, Left by default) */
+ justify?: TextProps["justify"];
+ children?: ReactNode;
+}
+
+/** Text in Bevy's 2D world, its block's centre at its Transform (Text2d with Bevy's default Anchor::CENTER). bevy_text
+ * lays it out as a <Text>'s, so this is that Text, placed on the frame. Put it after the <Canvas3D> in the
+ * <AbsoluteFill>: it draws over the 2D and 3D parts, where Bevy orders it with the 2D ones by z.
+ * @bevy bevy_sprite::text2d::Text2d */
+export function Text2d({ transform, justify, children, ...text }: Text2dProps) {
+ const { width, height } = useVideoConfig();
+ const [tx, ty] = transform?.translation ?? [0, 0, 0];
+ const [sx, sy] = transform?.scale ?? [1, 1, 1];
+ const turn = transform?.rotation ? -eulerOf(transform.rotation)[2] : 0;
+ const place: CSSProperties = { position: "absolute", left: width / 2 + tx, top: height / 2 - ty, transform: `translate(-50%, -50%) rotate(${turn}rad) scale(${sx}, ${sy})` };
+ return (
+ <div style={VIEWPORT}>
+ <div style={place}>
+ <InUi.Provider value={{ back: undefined }}>
+ <Text {...text} justify={justify}>{children}</Text>
+ </InUi.Provider>
+ </div>
+ </div>
+ );
+}
+
+// an ImageNode cut in nine (NodeImageMode::Sliced): CSS border-image with its slices and `fill`, and bevy_ui's own
+// corner scale and tiling on data-raea-bevy-slice (raea's Blitz, render/border_image.rs). It holds children, as a
+// sliced button's label. A flipped one draws on a layer behind them (z-index -1 in the node's own stacking context,
+// over its background, as Bevy draws the picture), mirrored there, so the flip doesn't turn the label.
+function SlicedNode({ image, color, flip_x, flip_y, children, fixed, texture_atlas, image_mode, ...p }: ImageNodeProps) {
+ if (typeof image !== "string" || image === "") throw new TypeError(`ImageNode: image is a picture file (staticFile("x.png")), got ${JSON.stringify(image)}`);
+ const sl = image_mode?.Sliced;
+ const b = sl?.border;
+ if (!sl || !b || ![b.left, b.right, b.top, b.bottom].every((v) => Number.isFinite(v) && v >= 0)) throw new TypeError(`ImageNode: image_mode is { Sliced: { border: { left, right, top, bottom } } } (px >= 0), got ${JSON.stringify(image_mode)}`);
+ if (texture_atlas !== undefined) throw new TypeError("ImageNode: a sliced picture takes no texture_atlas here yet");
+ if (color !== undefined && !(color.red === 1 && color.green === 1 && color.blue === 1 && color.alpha === 1)) throw new TypeError("ImageNode: a sliced picture is untinted here yet (color white)");
+ const max = sl.max_corner_scale ?? 1;
+ if (!(Number.isFinite(max) && max > 0)) throw new RangeError(`ImageNode: max_corner_scale is above 0, got ${max}`);
+ const mode = (m: SliceScaleMode | undefined, which: string) => {
+ if (m === undefined || m === "Stretch") return "s";
+ const v = typeof m === "object" ? m.Tile?.stretch_value : undefined;
+ if (!(typeof v === "number" && Number.isFinite(v) && v > 0)) throw new TypeError(`ImageNode: ${which} is "Stretch" or { Tile: { stretch_value } } (above 0), got ${JSON.stringify(m)}`);
+ return `t${v}`;
+ };
+ const marker = { "data-raea-bevy-slice": `${max} ${mode(sl.sides_scale_mode, "sides_scale_mode")} ${mode(sl.center_scale_mode, "center_scale_mode")}` };
+ const ui = useContext(InUi);
+ const n = nodeCss("ImageNode", p, ui?.back);
+ const rendering = RENDERING[useContext(Sampler)];
+ const slices: CSSProperties = {
+ borderImageSource: `url("${image}")`,
+ borderImageSlice: `${b.top} ${b.right} ${b.bottom} ${b.left} fill`,
+ // CSS's own widths (the slices at max_corner_scale); Blitz scales them as bevy_ui does by the marker
+ borderImageWidth: `${b.top * max}px ${b.right * max}px ${b.bottom * max}px ${b.left * max}px`,
+ ...(rendering ? { imageRendering: rendering } : {}),
+ };
+ const root = fixed ? "fixed" : ui === null;
+ if (!flip_x && !flip_y) return boxOf({ ...n.css, ...slices }, n.back, children, root, undefined, marker);
+ const flips = [flip_x && "scaleX(-1)", flip_y && "scaleY(-1)"].filter(Boolean).join(" ");
+ const layer = <div key="raea-slices" style={{ position: "absolute", left: 0, top: 0, width: "100%", height: "100%", zIndex: -1, transform: flips, ...slices }} {...marker} />;
+ return boxOf({ ...n.css, position: n.css.position ?? "relative", zIndex: 0 }, n.back, [layer, ...Children.toArray(children)], root);
+}
+
+/** bevy_ui's UiScale: every UI length inside times `value` (2 draws a 16 px node 32 px). Its roots lay out in a window
+ * of the frame's size over `value`, which is then scaled up from its top left, as Bevy lays out in logical px and
+ * draws in physical ones. Text2d and the 2D and 3D parts aren't UI, so they stay as they are.
+ * @bevy bevy_ui::UiScale */
+export function UiScale({ value, children }: { value: number; children?: ReactNode }) {
+ if (!(Number.isFinite(value) && value > 0)) throw new RangeError(`UiScale: value is above 0, got ${value}`);
+ return <div style={{ position: "absolute", left: 0, top: 0, width: `${100 / value}%`, height: `${100 / value}%`, transform: `scale(${value})`, transformOrigin: "0 0" }}>{children}</div>;
+}
diff --git a/sdk/skills/raea/reference/sdk.md b/sdk/skills/raea/reference/sdk.md
index 6509b75c..afe3d0b4 100644
--- a/sdk/skills/raea/reference/sdk.md
+++ b/sdk/skills/raea/reference/sdk.md
@@ -99,7 +99,7 @@ with a capital, hooks with `use`. A component's props are in its file.
## `raea/ui` (sdk/raea/src/ui.ts)
-`AbsoluteFill`, `BorderRadius`, `FontVariationTag`, `ImageNode`, `ImagePlugin`, `Node`, `Overflow`, `Text`, `TextSpan`, `TextureAtlasLayout`, `UiRect`, `auto`, `percent`, `px`, `vh`, `vmax`, `vmin`, `vw`
+`AbsoluteFill`, `BorderRadius`, `FontVariationTag`, `ImageNode`, `ImagePlugin`, `Node`, `Overflow`, `OverflowClipMargin`, `Text`, `Text2d`, `TextSpan`, `TextureAtlasLayout`, `UiRect`, `UiScale`, `auto`, `percent`, `px`, `vh`, `vmax`, `vmin`, `vw`
## `raea/video` (sdk/raea/src/video.ts)
diff --git a/systems/sprite/Cargo.toml b/systems/sprite/Cargo.toml
index 2ee7f881..93273a94 100644
--- a/systems/sprite/Cargo.toml
+++ b/systems/sprite/Cargo.toml
@@ -9,4 +9,6 @@ description = "2D over the 3D (<Sprite>, <Shape2D>): Bevy's Sprite and Mesh2d dr
[dependencies]
raea-sys-frame = { path = "../frame" }
raea-core-program = { path = "../../core/program" }
+serde_json = "1"
+raea-sys-sampler = { path = "../sampler" }
bevy = { version = "=0.20.0", default-features = false, features = ["std", "default_app", "3d_bevy_render", "ui_bevy_render"] }
diff --git a/systems/sprite/src/lib.rs b/systems/sprite/src/lib.rs
index 472d9f98..e127ba00 100644
--- a/systems/sprite/src/lib.rs
+++ b/systems/sprite/src/lib.rs
@@ -73,6 +73,16 @@ pub fn sprite_image(w: u32, h: u32, rgba: Vec<u8>) -> Image {
Image::new(size, bevy::render::render_resource::TextureDimension::D2, rgba, bevy::render::render_resource::TextureFormat::Rgba8UnormSrgb, bevy::asset::RenderAssetUsages::default())
}
+/// A shape's texture as a sprite's picture is made, read by the row's own sampler (`texture_sampler`, Bevy's
+/// load_with_settings: what it gives over the default, raea-sys-sampler).
+pub fn shape_image(w: u32, h: u32, rgba: Vec<u8>, v: &BTreeMap<String, V>) -> Result<Image, String> {
+ let mut image = sprite_image(w, h, rgba);
+ if let Some(s) = raea_sys_sampler::Sampling::col(v, "texture_sampler")? {
+ image.sampler = ImageSampler::Descriptor(s.over(raea_sys_sampler::descriptor_of(&image.sampler)));
+ }
+ Ok(image)
+}
+
/// A sprite's entity from its row and its picture (`size` in px).
pub fn spawn_sprite(world: &mut World, e: Entity, t: &Tup, image: Handle<Image>, size: UVec2) {
let v = &t.vals;
@@ -104,6 +114,15 @@ pub fn spawn_sprite(world: &mut World, e: Entity, t: &Tup, image: Handle<Image>,
world.entity_mut(e).insert((sprite, place_of(v), Visibility::default(), Part2d));
}
+/// A ColorMaterial's uv_transform from the row's JSON Affine2 ({ scale: [x, y], angle, translation: [x, y] }, glam's
+/// from_scale_angle_translation), the identity without one.
+fn uv_of(v: &BTreeMap<String, V>) -> bevy::math::Affine2 {
+ let Some(V::S(s)) = v.get("uv_transform") else { return bevy::math::Affine2::IDENTITY };
+ let a: serde_json::Value = serde_json::from_str(s).unwrap_or_default();
+ let pair = |k: &str, d: f32| Vec2::new(a[k][0].as_f64().map_or(d, |x| x as f32), a[k][1].as_f64().map_or(d, |x| x as f32));
+ bevy::math::Affine2::from_scale_angle_translation(pair("scale", 1.0), a["angle"].as_f64().unwrap_or(0.0) as f32, pair("translation", 0.0))
+}
+
/// A flat shape's entity from its row: its ColorMaterial the row's colour, its texture (decoded by the caller) and
/// AlphaMode2d (`alpha`: "opaque", "mask" at `alpha_cutoff`, otherwise Bevy's default "blend").
pub fn spawn_shape(world: &mut World, e: Entity, t: &Tup, texture: Option<Handle<Image>>) {
@@ -118,9 +137,8 @@ pub fn spawn_shape(world: &mut World, e: Entity, t: &Tup, texture: Option<Handle
};
// per-vertex linear colours (Mesh::ATTRIBUTE_COLOR), which ColorMaterial multiplies its colour and texture by
if let Some(V::S(s)) = v.get("vertex_colors") {
- // the row's JSON, [[r, g, b, a], ..]: its numbers in order, four to a vertex
- let f: Vec<f32> = s.split([',', '[', ']']).filter_map(|x| x.trim().parse().ok()).collect();
- let colors: Vec<[f32; 4]> = f.chunks_exact(4).filter_map(|c| c.try_into().ok()).collect();
+ // the row's JSON, [[r, g, b, a], ..]
+ let colors: Vec<[f32; 4]> = serde_json::from_str(s).unwrap_or_default();
match colors.len() == mesh.count_vertices() {
true => mesh.insert_attribute(Mesh::ATTRIBUTE_COLOR, colors),
false => error!("Shape2D {}: vertex_colors has {} colours for a mesh of {} vertices; drawn without them", t.id, colors.len(), mesh.count_vertices()),
@@ -132,7 +150,8 @@ pub fn spawn_shape(world: &mut World, e: Entity, t: &Tup, texture: Option<Handle
Some(V::S(a)) if a == "mask" => AlphaMode2d::Mask(num(v, "alpha_cutoff", 0.5)),
_ => AlphaMode2d::Blend,
};
- let mat = world.resource_mut::<Assets<ColorMaterial>>().add(ColorMaterial { color: color_of(v), alpha_mode, texture, ..default() });
+ let uv_transform = uv_of(v);
+ let mat = world.resource_mut::<Assets<ColorMaterial>>().add(ColorMaterial { color: color_of(v), alpha_mode, texture, uv_transform, ..default() });
world.entity_mut(e).insert((Mesh2d(mesh), MeshMaterial2d(mat), place_of(v), Visibility::default(), Part2d));
}
diff --git a/vendor/blitz-dom/src/document.rs b/vendor/blitz-dom/src/document.rs
index 99c2a177..1ff7790d 100644
--- a/vendor/blitz-dom/src/document.rs
+++ b/vendor/blitz-dom/src/document.rs
@@ -1526,11 +1526,13 @@ impl BaseDocument {
node.clear_layout_cache();
node.insert_damage(ALL_DAMAGE);
}
- ImageType::Background(idx) | ImageType::Mask(idx) => {
+ ImageType::Background(idx) | ImageType::Mask(idx) | ImageType::Border(idx) => {
let layer_image = node.element_data_mut().and_then(|el| {
let images = match image_type {
ImageType::Background(_) => &mut el.background_images,
ImageType::Mask(_) => &mut el.mask_images,
+ // raea: the border-image-source's picture
+ ImageType::Border(_) => &mut el.border_images,
ImageType::Image => unreachable!(),
};
images.get_mut(idx)
diff --git a/vendor/blitz-dom/src/layout/damage.rs b/vendor/blitz-dom/src/layout/damage.rs
index aaa5f5e2..b11e92ee 100644
--- a/vendor/blitz-dom/src/layout/damage.rs
+++ b/vendor/blitz-dom/src/layout/damage.rs
@@ -531,6 +531,8 @@ impl BaseDocument {
}
self.flush_image_layers_from_style(node_id, ImageLayerKind::Background);
self.flush_image_layers_from_style(node_id, ImageLayerKind::Mask);
+ // raea: border-image-source, a third layer (render/border_image.rs in blitz-paint)
+ self.flush_image_layers_from_style(node_id, ImageLayerKind::Border);
}
}
@@ -558,10 +560,12 @@ impl BaseDocument {
let (style_images, elem_images) = match kind {
ImageLayerKind::Background => (
- &style.get_background().background_image.0,
+ &style.get_background().background_image.0[..],
&mut elem.background_images,
),
- ImageLayerKind::Mask => (&style.get_svg().mask_image.0, &mut elem.mask_images),
+ ImageLayerKind::Mask => (&style.get_svg().mask_image.0[..], &mut elem.mask_images),
+ // raea: one border-image-source; the others as slices so the three arms agree
+ ImageLayerKind::Border => (std::slice::from_ref(&style.get_border().border_image_source), &mut elem.border_images),
};
let len = style_images.len();
diff --git a/vendor/blitz-dom/src/node/element.rs b/vendor/blitz-dom/src/node/element.rs
index a65388b2..16cc0364 100644
--- a/vendor/blitz-dom/src/node/element.rs
+++ b/vendor/blitz-dom/src/node/element.rs
@@ -66,6 +66,8 @@ pub struct ElementData {
pub special_data: SpecialElementData,
pub background_images: ThinVec<Option<ImageResourceData>>,
+ /// raea: the border-image-source's picture (one layer)
+ pub border_images: ThinVec<Option<ImageResourceData>>,
pub mask_images: ThinVec<Option<ImageResourceData>>,
@@ -283,6 +285,7 @@ impl std::fmt::Debug for ElementData {
.field("style_attribute", &self.style_attribute)
.field("special_data", &self.special_data)
.field("background_images", &self.background_images)
+ .field("border_images", &self.border_images)
.field("mask_images", &self.mask_images)
.field("inline_layout_data", &self.inline_layout_data)
.field("list_item_data", &self.list_item_data)
@@ -308,6 +311,7 @@ impl Clone for ElementData {
style_attribute: self.style_attribute.clone(),
special_data: self.special_data.clone(),
background_images: self.background_images.clone(),
+ border_images: self.border_images.clone(),
mask_images: self.mask_images.clone(),
inline_layout_data: self.inline_layout_data.clone(),
list_item_data: self.list_item_data.clone(),
@@ -420,6 +424,7 @@ impl ElementData {
special_data: SpecialElementData::None,
template_contents: None,
background_images: ThinVec::new(),
+ border_images: ThinVec::new(),
mask_images: ThinVec::new(),
stylo_element_data: Default::default(),
@@ -474,6 +479,11 @@ impl ElementData {
Some(&attr.value)
}
+ /// raea: a sliced bevy_ui ImageNode's slicer (`data-raea-bevy-slice`), which blitz-paint's border-image reads
+ pub fn bevy_slice(&self) -> Option<&str> {
+ self.attr(LocalName::from("data-raea-bevy-slice"))
+ }
+
pub fn attr_parsed<T: FromStr>(&self, name: impl PartialEq<LocalName>) -> Option<T> {
let attr = self.attrs.iter().find(|attr| name == attr.name.local)?;
attr.value.parse::<T>().ok()
diff --git a/vendor/blitz-dom/src/stylo.rs b/vendor/blitz-dom/src/stylo.rs
index dd82f182..b3929f99 100644
--- a/vendor/blitz-dom/src/stylo.rs
+++ b/vendor/blitz-dom/src/stylo.rs
@@ -1585,6 +1585,8 @@ fn needs_style_image_flush(node: &Node, style: &ComputedValues) -> bool {
&style.get_background().background_image.0,
&el.background_images,
) || out_of_sync(&style.get_svg().mask_image.0, &el.mask_images)
+ // raea: and the border-image-source (blitz-paint's render/border_image.rs)
+ || out_of_sync(std::slice::from_ref(&style.get_border().border_image_source), &el.border_images)
})
}
diff --git a/vendor/blitz-dom/src/util.rs b/vendor/blitz-dom/src/util.rs
index dcb7135c..2e04f2dc 100644
--- a/vendor/blitz-dom/src/util.rs
+++ b/vendor/blitz-dom/src/util.rs
@@ -73,6 +73,8 @@ pub fn add_svg_font(bytes: Vec<u8>, family: Option<&str>) {
pub enum ImageLayerKind {
Background,
Mask,
+ /// raea: border-image-source, one layer (bevy_ui's NodeImageMode::Sliced)
+ Border,
}
impl ImageLayerKind {
@@ -80,6 +82,7 @@ impl ImageLayerKind {
match self {
Self::Background => ImageType::Background(idx),
Self::Mask => ImageType::Mask(idx),
+ Self::Border => ImageType::Border(idx),
}
}
}
@@ -89,6 +92,8 @@ pub enum ImageType {
Image,
Background(usize),
Mask(usize),
+ /// raea: the border-image-source
+ Border(usize),
}
/// A point
diff --git a/vendor/blitz-paint/src/render.rs b/vendor/blitz-paint/src/render.rs
index f7d3291c..2d4f08a8 100644
--- a/vendor/blitz-paint/src/render.rs
+++ b/vendor/blitz-paint/src/render.rs
@@ -1,5 +1,6 @@
mod background;
mod border;
+mod border_image;
mod box_shadow;
mod clip_path;
mod form_controls;
@@ -1021,7 +1022,9 @@ impl<'dom, 'a> BlitzDomPainter<'dom, 'a> {
cx.draw_outset_box_shadow(scene);
cx.draw_background(scene);
cx.draw_inset_box_shadow(scene);
- cx.draw_border(scene);
+ if !cx.draw_border_image(scene) {
+ cx.draw_border(scene);
+ }
cx.stroke_devtools(scene);
}
if phase == Phase::Inlines {
@@ -1042,6 +1045,7 @@ impl<'dom, 'a> BlitzDomPainter<'dom, 'a> {
// raea: overflow clips each axis on its own: `overflow-x: clip` beside a visible y clips only x (as Chrome
// does, and bevy_ui's Overflow::clip_x), so the box of a lone clipping axis reaches far along the other
let (clips_x, clips_y) = (!matches!(overflow_x, Overflow::Visible), !matches!(overflow_y, Overflow::Visible));
+ let clip_margin = styles.get_margin().overflow_clip_margin.clone();
let one_axis = clips_x != clips_y && !is_text_input && !is_image && !is_sub_doc && !contain_paint;
let clip_shape = |b: crate::kurbo_css::BoxShape| match one_axis {
true => {
@@ -1059,7 +1063,7 @@ impl<'dom, 'a> BlitzDomPainter<'dom, 'a> {
let clip_box = if is_text_input {
cx.frame.content_box_path()
} else {
- clip_shape(cx.frame.padding_box_path())
+ clip_shape(overflow_clip_box(&cx.frame, &clip_margin))
};
clip_rect.intersect(screen_transform.transform_rect_bbox(clip_box.bounding_box()))
} else {
@@ -1229,14 +1233,16 @@ impl<'dom, 'a> BlitzDomPainter<'dom, 'a> {
cx.draw_table_row_backgrounds(scene);
cx.draw_table_borders(scene);
cx.draw_table_row_borders(scene);
- cx.draw_border(scene);
+ if !cx.draw_border_image(scene) {
+ cx.draw_border(scene);
+ }
cx.stroke_devtools(scene);
// TODO: allow layers with opacity to be unclipped (overflow: visible)
let clip = if is_text_input {
&cx.frame.content_box_path()
} else {
- &clip_shape(cx.frame.padding_box_path())
+ &clip_shape(overflow_clip_box(&cx.frame, &clip_margin))
};
// Clip layer if box requires clipping. Opacity set to 1.0
@@ -2339,3 +2345,19 @@ fn create_css_rect(style: &ComputedValues, layout: &Layout, scale: f64) -> CssBo
CssBox::new(border_box, border, padding, outline_width, border_radii)
}
+
+/// raea: what an overflow clip clips to: overflow-clip-margin's visual box (the padding box by default), grown by its
+/// offset (bevy_ui's OverflowClipMargin, ComputedNode::resolve_clip_rect). A grown one is a rect, as Bevy's clip is.
+fn overflow_clip_box(frame: &CssBox, m: &style::values::computed::OverflowClipMargin) -> crate::kurbo_css::BoxShape {
+ use style::values::generics::box_::OverflowClipMarginBox as B;
+ let b = match m.visual_box {
+ B::BorderBox => frame.border_box_path(),
+ B::PaddingBox => frame.padding_box_path(),
+ B::ContentBox => frame.content_box_path(),
+ };
+ let grow = m.offset.0.px() as f64;
+ match grow > 0.0 {
+ true => crate::kurbo_css::BoxShape::Rect(b.bounding_box().inflate(grow, grow)),
+ false => b,
+ }
+}
diff --git a/vendor/blitz-paint/src/render/border_image.rs b/vendor/blitz-paint/src/render/border_image.rs
new file mode 100644
index 00000000..48d08545
--- /dev/null
+++ b/vendor/blitz-paint/src/render/border_image.rs
@@ -0,0 +1,166 @@
+//! raea: CSS border-image (css-backgrounds-3 §6), which bevy_ui's NodeImageMode::Sliced is: a picture cut into nine by
+//! border-image-slice, its corners drawn into the border-image area's corners (border-image-width), its edges and
+//! centre (with `fill`) stretched, repeated, rounded or spaced along them (border-image-repeat), over an area grown by
+//! border-image-outset. It replaces the element's border styles once the picture has loaded.
+
+use super::ElementCx;
+use anyrender::PaintScene;
+use blitz_dom::node::ImageData;
+use kurbo::{Affine, Rect};
+use style::values::computed::border::BorderImageSideWidth;
+use style::values::computed::{NonNegativeLengthOrNumber, NumberOrPercentage};
+use style::values::generics::border::GenericBorderImageSideWidth;
+use style::values::generics::length::GenericLengthOrNumber;
+use style::values::specified::border::BorderImageRepeatKeyword as Repeat;
+
+/// One tile along an axis: where it starts and how long it is, in device px.
+type Tile = (f64, f64);
+
+/// bevy_ui's SliceScaleMode for one part (data-raea-bevy-slice): stretched, or tiled from its start every slice x
+/// stretch_value px, the last tile cut (ui_texture_slice_pipeline's compute_tiled_subaxis)
+#[derive(Clone, Copy)]
+enum Bevy {
+ Stretch,
+ Tile(f64),
+}
+
+/// The tiles along one axis of a part `len` long from `start`, each `tile` long at its natural scale.
+fn tiles(mode: Repeat, start: f64, len: f64, tile: f64) -> Vec<Tile> {
+ if len <= 0.0 {
+ return vec![];
+ }
+ if mode == Repeat::Stretch || tile <= 0.0 {
+ return vec![(start, len)];
+ }
+ match mode {
+ // whole tiles, scaled to fit a whole number of them
+ Repeat::Round => {
+ let n = (len / tile).round().max(1.0);
+ (0..n as usize).map(|k| (start + k as f64 * len / n, len / n)).collect()
+ }
+ // whole tiles, the gaps between them (and at the ends) equal; none when not one fits
+ Repeat::Space => {
+ let n = (len / tile).floor();
+ let gap = (len - n * tile) / (n + 1.0);
+ (0..n as usize).map(|k| (start + gap + k as f64 * (tile + gap), tile)).collect()
+ }
+ // tiles centred on the part, cut at its ends (the caller clips to the part)
+ _ => {
+ let first = start + (len - tile) / 2.0;
+ let before = ((first - start) / tile).ceil();
+ let n = (len / tile).ceil() as usize + 2;
+ (0..n).map(|k| (first + (k as f64 - before) * tile, tile)).filter(|(p, t)| p + t > start && *p < start + len).collect()
+ }
+ }
+}
+
+impl ElementCx<'_, '_> {
+ /// Draws the border-image when it has a loaded picture; false when there's none, so the border styles draw.
+ pub(super) fn draw_border_image(&self, scene: &mut impl PaintScene) -> bool {
+ let Some(Some(res)) = self.element.border_images.first() else { return false };
+ let ImageData::Raster(image) = &res.image else { return false };
+ let border = self.style.get_border();
+ let (iw, ih) = (image.width as f64, image.height as f64);
+ if iw <= 0.0 || ih <= 0.0 {
+ return false;
+ }
+ let s = self.scale;
+ let bw = self.frame.border_width;
+ // the slice offsets in image px, top right bottom left
+ let slice = &border.border_image_slice;
+ let cut = |v: &NumberOrPercentage, of: f64| match v {
+ NumberOrPercentage::Number(n) => (*n as f64).clamp(0.0, of),
+ NumberOrPercentage::Percentage(p) => (p.0 as f64 * of).clamp(0.0, of),
+ };
+ let o = &slice.offsets;
+ let (st, sr, sb, sl) = (cut(&o.0.0, ih), cut(&o.1.0, iw), cut(&o.2.0, ih), cut(&o.3.0, iw));
+ // the area: the border box grown by the outset (a number is that many border widths)
+ let out = |v: &NonNegativeLengthOrNumber, w: f64| match v {
+ GenericLengthOrNumber::Number(n) => n.0 as f64 * w,
+ GenericLengthOrNumber::Length(l) => l.0.px() as f64 * s,
+ };
+ let oo = &border.border_image_outset;
+ let bb = self.frame.border_box;
+ let area = Rect::new(bb.x0 - out(&oo.3, bw.x0), bb.y0 - out(&oo.0, bw.y0), bb.x1 + out(&oo.1, bw.x1), bb.y1 + out(&oo.2, bw.y1));
+ // the widths of its edges (a number is that many border widths, auto the slice), scaled down to fit
+ let width = |v: &BorderImageSideWidth, w: f64, of: f64, sliced: f64| match v {
+ GenericBorderImageSideWidth::Number(n) => n.0 as f64 * w,
+ GenericBorderImageSideWidth::LengthPercentage(lp) => lp.0.resolve(style::values::computed::Length::new((of / s) as f32)).px() as f64 * s,
+ GenericBorderImageSideWidth::Auto => sliced * s,
+ };
+ let ww = &border.border_image_width;
+ let (aw, ah) = (area.width(), area.height());
+ // bevy_ui's slicer (data-raea-bevy-slice="max_corner_scale sides center", each mode "s" or "t<stretch>"): the
+ // edges are the slices times min(the node over the picture, max_corner_scale), and its own tiling
+ let bevy = self.element.bevy_slice().map(|a| {
+ let mut w = a.split_whitespace();
+ let max: f64 = w.next().and_then(|x| x.parse().ok()).unwrap_or(1.0);
+ let mode = |m: Option<&str>| match m.and_then(|m| m.strip_prefix('t')).and_then(|v| v.parse().ok()) {
+ Some(v) => Bevy::Tile(v),
+ None => Bevy::Stretch,
+ };
+ (max, mode(w.next()), mode(w.next()))
+ });
+ let (mut wt, mut wr, mut wb, mut wl) = match bevy {
+ Some((max, _, _)) => {
+ let k = (aw / s / iw).min(ah / s / ih).min(max) * s;
+ (st * k, sr * k, sb * k, sl * k)
+ }
+ None => (width(&ww.0, bw.y0, ah, st), width(&ww.1, bw.x1, aw, sr), width(&ww.2, bw.y1, ah, sb), width(&ww.3, bw.x0, aw, sl)),
+ };
+ let f = (aw / (wl + wr)).min(ah / (wt + wb)).min(1.0);
+ if bevy.is_none() && f.is_finite() && f < 1.0 {
+ (wt, wr, wb, wl) = (wt * f, wr * f, wb * f, wl * f);
+ }
+ let quality = super::to_image_quality(self.style.clone_image_rendering());
+ let brush = super::to_peniko_image(image, quality);
+ // the image's [x0, x1] x [y0, y1] drawn into tiles along each axis, clipped to the part `to`
+ let mut part = |src: Rect, to: Rect, tx: Vec<Tile>, ty: Vec<Tile>| {
+ if src.width() <= 0.0 || src.height() <= 0.0 {
+ return;
+ }
+ for &(y, h) in &ty {
+ for &(x, w) in &tx {
+ let tile = Rect::new(x, y, x + w, y + h).intersect(to);
+ if tile.width() <= 0.0 || tile.height() <= 0.0 {
+ continue;
+ }
+ let map = Affine::translate((x, y)) * Affine::scale_non_uniform(w / src.width(), h / src.height()) * Affine::translate((-src.x0, -src.y0));
+ scene.fill(peniko::Fill::NonZero, self.transform, brush.as_ref(), Some(map), &tile);
+ }
+ }
+ };
+ let (x0, x1, x2, x3) = (area.x0, area.x0 + wl, area.x1 - wr, area.x1);
+ let (y0, y1, y2, y3) = (area.y0, area.y0 + wt, area.y1 - wb, area.y1);
+ let (sx1, sx2, sy1, sy2) = (sl, iw - sr, st, ih - sb);
+ let one = |a: f64, b: f64| vec![(a, b - a)];
+ // the corners, each its own slice into its own corner
+ part(Rect::new(0.0, 0.0, sx1, sy1), Rect::new(x0, y0, x1, y1), one(x0, x1), one(y0, y1));
+ part(Rect::new(sx2, 0.0, iw, sy1), Rect::new(x2, y0, x3, y1), one(x2, x3), one(y0, y1));
+ part(Rect::new(0.0, sy2, sx1, ih), Rect::new(x0, y2, x1, y3), one(x0, x1), one(y2, y3));
+ part(Rect::new(sx2, sy2, iw, ih), Rect::new(x2, y2, x3, y3), one(x2, x3), one(y2, y3));
+ // the edges and centre: along each by border-image-repeat (a tile its slice at the edge's width), or Bevy's
+ // mode (a tile the slice times stretch_value, from the part's start)
+ let rep = border.border_image_repeat.clone();
+ let (mw, mh) = (sx2 - sx1, sy2 - sy1);
+ let along_x = |edge_w: f64, slice_h: f64| if slice_h > 0.0 { mw * edge_w / slice_h } else { mw };
+ let along_y = |edge_w: f64, slice_w: f64| if slice_w > 0.0 { mh * edge_w / slice_w } else { mh };
+ let run = |css: Repeat, own: Option<Bevy>, start: f64, len: f64, tile: f64, slice: f64| match own {
+ Some(Bevy::Tile(v)) if slice * v > 0.0 => (0..(len / (slice * v * s)).ceil() as usize).map(|k| (start + k as f64 * slice * v * s, slice * v * s)).collect(),
+ Some(_) => one(start, start + len),
+ None => tiles(css, start, len, tile),
+ };
+ let (sides, centre) = (bevy.map(|b| b.1), bevy.map(|b| b.2));
+ part(Rect::new(sx1, 0.0, sx2, sy1), Rect::new(x1, y0, x2, y1), run(rep.0, sides, x1, x2 - x1, along_x(wt, st), mw), one(y0, y1));
+ part(Rect::new(sx1, sy2, sx2, ih), Rect::new(x1, y2, x2, y3), run(rep.0, sides, x1, x2 - x1, along_x(wb, sb), mw), one(y2, y3));
+ part(Rect::new(0.0, sy1, sx1, sy2), Rect::new(x0, y1, x1, y2), one(x0, x1), run(rep.1, sides, y1, y2 - y1, along_y(wl, sl), mh));
+ part(Rect::new(sx2, sy1, iw, sy2), Rect::new(x2, y1, x3, y2), one(x2, x3), run(rep.1, sides, y1, y2 - y1, along_y(wr, sr), mh));
+ // the centre with `fill`: scaled as the top edge across and the left edge down (the bottom and right without them)
+ if slice.fill {
+ let tw = if st > 0.0 { along_x(wt, st) } else { along_x(wb, sb) };
+ let th = if sl > 0.0 { along_y(wl, sl) } else { along_y(wr, sr) };
+ part(Rect::new(sx1, sy1, sx2, sy2), Rect::new(x1, y1, x2, y2), run(rep.0, centre, x1, x2 - x1, tw, mw), run(rep.1, centre, y1, y2 - y1, th, mh));
+ }
+ true
+ }
+}