Skip to content

Commit e3df1da

Browse files
committed
FC0a: outline-offset and Bevy's outline corners in Blitz, corners resolved as Bevy's (CornerRadius, BorderRadius.px, clamped to the node), BorderColor per side, ImageNode in its own file; ui/styling/borders ported
1 parent c33faa7 commit e3df1da

15 files changed

Lines changed: 438 additions & 266 deletions

File tree

‎bench/bevy-parity/examples.list‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,4 @@ ui/images/ui_texture_atlas_slice
6464
ui/images/ui_texture_slice_flip_and_tile
6565
ui/widgets/button
6666
ui/text/letter_spacing
67+
ui/styling/borders

‎bench/bevy-parity/runs.tsv‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,4 @@ ui/images/ui_texture_slice_flip_and_tile - 10
6363
ui/images/ui_texture_atlas_slice - 10
6464
ui/widgets/button - 10
6565
ui/text/letter_spacing - 10
66+
ui/styling/borders - 10

‎docs/bevy-parity.md‎

Lines changed: 46 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Bevy v0.20.0's examples against their raea TSX ports (docs/control.feature FC0a)
44
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
55
frame time at most 1.25x the example's). Wall time is one machine's, measured in the same run.
66

7-
Examples: **438**, ported **64**, passing **61**, excluded **16** (docs/bevy-parity/excluded.tsv), left **361**.
7+
Examples: **438**, ported **65**, passing **62**, excluded **16** (docs/bevy-parity/excluded.tsv), left **360**.
88

99
raea's frame ms is its update's plus the time React takes to step a frame for its 3D (step), which the example
1010
doesn't pay.
@@ -76,50 +76,51 @@ doesn't pay.
7676
| 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 | |
7777
| 3d/lightmaps | 10 | 1.000000 | 0 | 6 / 6 | 453 / 506 | 11 / 13 | 6 / 10 | 16.538 / 1.727 = 1.5 + 0.227 | yes | |
7878
| 3d/lightmaps | 5 | 1.000000 | 0 | 6 / 6 | 453 / 506 | 11 / 13 | 6 / 10 | 58.916 / 2.25 = 2.05 + 0.200 | yes | |
79-
| 2d/mesh2d | 10 | 0.999348 | 0 | 0 / 0 | 441 / 494 | 6 / 8 | 1 / 1 | 30.072 / 1.6 = 1.445 + 0.155 | yes | |
80-
| 2d/sprite | 10 | 0.998326 | 8 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 29.165 / 1.461 = 1.297 + 0.164 | yes | |
81-
| 2d/sprite_flipping | 10 | 0.998326 | 8 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 28.607 / 1.252 = 1.097 + 0.155 | yes | |
82-
| 2d/move_sprite | 120 | 0.998270 | 9 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 1.384 / 0.811 = 0.746 + 0.065 | yes | |
83-
| 2d/move_sprite | 30 | 0.998261 | 8 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 10.949 / 1.061 = 0.926 + 0.135 | yes | |
84-
| 2d/transparency_2d | 10 | 0.997674 | 5 | 0 / 0 | 443 / 496 | 5 / 7 | 1 / 1 | 29.126 / 1.236 = 1.1 + 0.136 | yes | |
85-
| 2d/sprite_sheet | 30 | 0.998820 | 5 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 11.109 / 1.063 = 0.915 + 0.148 | yes | |
86-
| 2d/sprite_sheet | 60 | 0.999054 | 5 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 1.304 / 0.941 = 0.843 + 0.098 | yes | |
87-
| 2d/sprite_animation | 12 | 0.997217 | 9 | 0 / 0 | 443 / 495 | 5 / 7 | 1 / 1 | 25.377 / 1.257 = 1.026 + 0.231 | yes | |
88-
| 2d/sprite_animation | 30 | 0.997017 | 8 | 0 / 0 | 443 / 495 | 5 / 7 | 1 / 1 | 1.399 / 1.001 = 0.859 + 0.142 | yes | |
89-
| 2d/sprite_animation | 60 | 0.997099 | 8 | 0 / 0 | 443 / 495 | 5 / 7 | 1 / 1 | 1.543 / 1.186 = 1.065 + 0.121 | yes | |
90-
| 2d/sprite_tile | 30 | 0.998633 | 7 | 0 / 0 | 442 / 494 | 5 / 7 | 1 / 1 | 12.123 / 1.287 = 1.116 + 0.171 | yes | |
91-
| 2d/sprite_tile | 300 | 0.992213 | 7 | 0 / 0 | 442 / 494 | 5 / 7 | 1 / 1 | 1.316 / 1.026 = 0.956 + 0.070 | yes | |
92-
| 2d/rotate_to_cursor | 10 | 0.999835 | 3 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 2.096 / 1.348 = 1.203 + 0.145 | yes | |
93-
| 2d/rotate_to_cursor | 5 | 0.999835 | 3 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 56.874 / 2.461 = 2.244 + 0.217 | yes | |
94-
| 2d/mesh2d_alpha_mode | 10 | 0.989355 | 8 | 0 / 0 | 446 / 499 | 6 / 13 | 1 / 1 | 2.25 / 1.602 = 1.447 + 0.155 | yes | |
95-
| 2d/mesh2d_alpha_mode | 5 | 0.989355 | 8 | 0 / 0 | 446 / 499 | 6 / 13 | 1 / 1 | 57.079 / 3.432 = 3.265 + 0.167 | yes | |
96-
| ui/styling/transparency_ui | 10 | 0.999700 | 3 | 0 / 0 | 445 / 492 | 5 / 7 | 1 / 1 | 1.801 / 1.117 = 0.99 + 0.127 | yes | |
97-
| ui/styling/transparency_ui | 5 | 0.999700 | 3 | 0 / 0 | 445 / 492 | 5 / 7 | 1 / 1 | 55.663 / 1.962 = 1.795 + 0.167 | yes | |
98-
| ui/layout/fixed_node | 10 | 1.000000 | 0 | 0 / 0 | 444 / 492 | 5 / 7 | 1 / 1 | 1.666 / 1.148 = 1.003 + 0.145 | yes | |
99-
| ui/layout/fixed_node | 5 | 1.000000 | 0 | 0 / 0 | 444 / 492 | 5 / 7 | 1 / 1 | 50.751 / 1.987 = 1.787 + 0.200 | yes | |
100-
| ui/images/image_node | 10 | 0.999893 | 1 | 0 / 0 | 442 / 492 | 5 / 7 | 1 / 1 | 2.178 / 1.408 = 1.217 + 0.191 | yes | |
101-
| ui/images/image_node | 5 | 0.999893 | 1 | 0 / 0 | 442 / 492 | 5 / 7 | 1 / 1 | 55.648 / 2.548 = 2.315 + 0.233 | yes | |
102-
| ui/text/font_weights | 10 | 0.990279 | 17 | 0 / 0 | 454 / 492 | 5 / 7 | 1 / 1 | 2.27 / 1.213 = 1.086 + 0.127 | yes | |
103-
| ui/text/font_weights | 5 | 0.990279 | 17 | 0 / 0 | 454 / 492 | 5 / 7 | 1 / 1 | 56.44 / 2.22 = 2.07 + 0.150 | yes | |
104-
| ui/text/font_variations | 10 | 0.992845 | 21 | 0 / 0 | 452 / 492 | 5 / 7 | 1 / 1 | 2.394 / 1.68 = 1.525 + 0.155 | yes | |
105-
| ui/text/font_variations | 5 | 0.992845 | 21 | 0 / 0 | 452 / 492 | 5 / 7 | 1 / 1 | 56.054 / 2.186 = 2.019 + 0.167 | yes | |
106-
| ui/text/text_background_colors | 10 | 0.997735 | 8 | 0 / 0 | 505 / 492 | 5 / 7 | 1 / 1 | 1.979 / 1.211 = 1.093 + 0.118 | yes | |
107-
| ui/text/text_background_colors | 5 | 0.997735 | 8 | 0 / 0 | 505 / 492 | 5 / 7 | 1 / 1 | 58.344 / 1.948 = 1.781 + 0.167 | yes | |
108-
| ui/text/strikethrough_and_underline | 10 | 0.990152 | 14 | 0 / 0 | 454 / 492 | 5 / 7 | 1 / 1 | 1.742 / 1.301 = 1.056 + 0.245 | yes | |
109-
| ui/text/strikethrough_and_underline | 5 | 0.990152 | 14 | 0 / 0 | 454 / 492 | 5 / 7 | 1 / 1 | 53.721 / 1.978 = 1.811 + 0.167 | yes | |
110-
| ui/scroll_and_overflow/overflow | 10 | 0.998143 | 5 | 0 / 0 | 461 / 492 | 5 / 7 | 1 / 1 | 1.842 / 1.276 = 1.094 + 0.182 | yes | |
111-
| ui/scroll_and_overflow/overflow | 5 | 0.998143 | 5 | 0 / 0 | 461 / 492 | 5 / 7 | 1 / 1 | 48.557 / 2.431 = 2.098 + 0.333 | yes | |
112-
| ui/images/ui_texture_atlas | 10 | 0.999601 | 7 | 0 / 0 | 445 / 492 | 5 / 7 | 1 / 1 | 1.701 / 1.341 = 1.223 + 0.118 | yes | |
113-
| ui/images/ui_texture_atlas | 5 | 0.999601 | 7 | 0 / 0 | 445 / 492 | 5 / 7 | 1 / 1 | 53.42 / 1.969 = 1.802 + 0.167 | yes | |
114-
| 2d/mesh2d_vertex_color_texture | 10 | 0.998651 | 6 | 0 / 0 | 442 / 495 | 6 / 9 | 1 / 1 | 30.477 / 1.149 = 0.985 + 0.164 | yes | |
115-
| 2d/mesh2d_repeated_texture | 10 | 0.991205 | 17 | 0 / 0 | 437 / 496 | 8 / 10 | 1 / 1 | 22.339 / 1.297 = 1.106 + 0.191 | yes | |
116-
| ui/layout/flex_layout | 10 | 0.990851 | 8 | 0 / 0 | 602 / 492 | 5 / 7 | 1 / 1 | 28.623 / 1.026 = 0.962 + 0.064 | yes | |
117-
| ui/scroll_and_overflow/overflow_clip_margin | 10 | 0.996801 | 9 | 0 / 0 | 465 / 492 | 5 / 7 | 1 / 1 | 29.665 / 1.075 = 0.866 + 0.209 | yes | |
118-
| ui/images/ui_texture_slice | 10 | 0.998957 | 8 | 0 / 0 | 447 / 492 | 5 / 7 | 1 / 1 | 29.763 / 1.1 = 0.964 + 0.136 | yes | |
119-
| ui/images/ui_texture_slice_flip_and_tile | 10 | 1.000000 | 0 | 0 / 0 | 461 / 492 | 5 / 7 | 1 / 1 | 28.635 / 1.035 = 0.853 + 0.182 | yes | |
120-
| ui/images/ui_texture_atlas_slice | 10 | 0.990791 | 17 | 0 / 0 | 447 / 492 | 5 / 7 | 1 / 1 | 29.482 / 1.293 = 1.166 + 0.127 | yes | |
121-
| ui/widgets/button | 10 | 0.999600 | 8 | 0 / 0 | 444 / 492 | 5 / 7 | 1 / 1 | 29.379 / 1.391 = 1.246 + 0.145 | yes | |
122-
| ui/text/letter_spacing | 10 | 0.995902 | 13 | 0 / 0 | 455 / 492 | 5 / 7 | 1 / 1 | 30.51 / 1.007 = 0.88 + 0.127 | yes | |
79+
| 2d/mesh2d | 10 | 0.999348 | 0 | 0 / 0 | 441 / 494 | 6 / 8 | 1 / 1 | 29.381 / 1.245 = 1.109 + 0.136 | yes | |
80+
| 2d/sprite | 10 | 0.998326 | 8 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 28.87 / 1.369 = 1.214 + 0.155 | yes | |
81+
| 2d/sprite_flipping | 10 | 0.998326 | 8 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 29.453 / 1.18 = 1.016 + 0.164 | yes | |
82+
| 2d/move_sprite | 120 | 0.998270 | 9 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 1.301 / 0.851 = 0.779 + 0.072 | yes | |
83+
| 2d/move_sprite | 30 | 0.998261 | 8 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 11.019 / 1.025 = 0.886 + 0.139 | yes | |
84+
| 2d/transparency_2d | 10 | 0.997674 | 5 | 0 / 0 | 443 / 496 | 5 / 7 | 1 / 1 | 28.586 / 1.61 = 1.437 + 0.173 | yes | |
85+
| 2d/sprite_sheet | 30 | 0.998820 | 5 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 12.358 / 1.161 = 1.009 + 0.152 | yes | |
86+
| 2d/sprite_sheet | 60 | 0.999054 | 5 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 1.684 / 0.954 = 0.846 + 0.108 | yes | |
87+
| 2d/sprite_animation | 12 | 0.997217 | 9 | 0 / 0 | 443 / 495 | 5 / 7 | 1 / 1 | 26.286 / 1.316 = 1.078 + 0.238 | yes | |
88+
| 2d/sprite_animation | 30 | 0.997017 | 8 | 0 / 0 | 443 / 495 | 5 / 7 | 1 / 1 | 1.516 / 1.182 = 1.014 + 0.168 | yes | |
89+
| 2d/sprite_animation | 60 | 0.997099 | 8 | 0 / 0 | 443 / 495 | 5 / 7 | 1 / 1 | 1.603 / 1.127 = 1.022 + 0.105 | yes | |
90+
| 2d/sprite_tile | 30 | 0.998633 | 7 | 0 / 0 | 442 / 494 | 5 / 7 | 1 / 1 | 11.517 / 1.095 = 0.869 + 0.226 | yes | |
91+
| 2d/sprite_tile | 300 | 0.992213 | 7 | 0 / 0 | 442 / 494 | 5 / 7 | 1 / 1 | 1.111 / 0.944 = 0.886 + 0.058 | yes | |
92+
| 2d/rotate_to_cursor | 10 | 0.999835 | 3 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 1.72 / 1.236 = 1.063 + 0.173 | yes | |
93+
| 2d/rotate_to_cursor | 5 | 0.999835 | 3 | 0 / 0 | 441 / 494 | 5 / 7 | 1 / 1 | 54.139 / 2.251 = 2.084 + 0.167 | yes | |
94+
| 2d/mesh2d_alpha_mode | 10 | 0.989355 | 8 | 0 / 0 | 446 / 499 | 6 / 13 | 1 / 1 | 1.826 / 1.174 = 1.038 + 0.136 | yes | |
95+
| 2d/mesh2d_alpha_mode | 5 | 0.989355 | 8 | 0 / 0 | 446 / 499 | 6 / 13 | 1 / 1 | 53.141 / 2.953 = 2.77 + 0.183 | yes | |
96+
| ui/styling/transparency_ui | 10 | 0.999700 | 3 | 0 / 0 | 445 / 492 | 5 / 7 | 1 / 1 | 1.947 / 1.235 = 1.099 + 0.136 | yes | |
97+
| ui/styling/transparency_ui | 5 | 0.999700 | 3 | 0 / 0 | 445 / 492 | 5 / 7 | 1 / 1 | 51.898 / 2.245 = 2.062 + 0.183 | yes | |
98+
| ui/layout/fixed_node | 10 | 1.000000 | 0 | 0 / 0 | 444 / 492 | 5 / 7 | 1 / 1 | 1.625 / 1.025 = 0.889 + 0.136 | yes | |
99+
| ui/layout/fixed_node | 5 | 1.000000 | 0 | 0 / 0 | 444 / 492 | 5 / 7 | 1 / 1 | 52.191 / 1.919 = 1.736 + 0.183 | yes | |
100+
| ui/images/image_node | 10 | 0.999893 | 1 | 0 / 0 | 442 / 492 | 5 / 7 | 1 / 1 | 1.803 / 1.124 = 0.997 + 0.127 | yes | |
101+
| ui/images/image_node | 5 | 0.999893 | 1 | 0 / 0 | 442 / 492 | 5 / 7 | 1 / 1 | 51.783 / 2.207 = 2.007 + 0.200 | yes | |
102+
| ui/text/font_weights | 10 | 0.990279 | 17 | 0 / 0 | 454 / 492 | 5 / 7 | 1 / 1 | 2.095 / 1.077 = 0.959 + 0.118 | yes | |
103+
| ui/text/font_weights | 5 | 0.990279 | 17 | 0 / 0 | 454 / 492 | 5 / 7 | 1 / 1 | 53.705 / 1.984 = 1.834 + 0.150 | yes | |
104+
| ui/text/font_variations | 10 | 0.992845 | 21 | 0 / 0 | 452 / 492 | 5 / 7 | 1 / 1 | 2.342 / 1.082 = 0.946 + 0.136 | yes | |
105+
| ui/text/font_variations | 5 | 0.992845 | 21 | 0 / 0 | 452 / 492 | 5 / 7 | 1 / 1 | 58.165 / 2.193 = 2.01 + 0.183 | yes | |
106+
| ui/text/text_background_colors | 10 | 0.997735 | 8 | 0 / 0 | 505 / 492 | 5 / 7 | 1 / 1 | 1.959 / 0.987 = 0.878 + 0.109 | yes | |
107+
| ui/text/text_background_colors | 5 | 0.997735 | 8 | 0 / 0 | 505 / 492 | 5 / 7 | 1 / 1 | 52.065 / 1.985 = 1.818 + 0.167 | yes | |
108+
| ui/text/strikethrough_and_underline | 10 | 0.990152 | 14 | 0 / 0 | 454 / 492 | 5 / 7 | 1 / 1 | 1.971 / 1.07 = 0.952 + 0.118 | yes | |
109+
| ui/text/strikethrough_and_underline | 5 | 0.990152 | 14 | 0 / 0 | 454 / 492 | 5 / 7 | 1 / 1 | 53.746 / 2.002 = 1.835 + 0.167 | yes | |
110+
| ui/scroll_and_overflow/overflow | 10 | 0.998143 | 5 | 0 / 0 | 461 / 492 | 5 / 7 | 1 / 1 | 1.844 / 1.185 = 1.003 + 0.182 | yes | |
111+
| ui/scroll_and_overflow/overflow | 5 | 0.998143 | 5 | 0 / 0 | 461 / 492 | 5 / 7 | 1 / 1 | 51.909 / 2.005 = 1.872 + 0.133 | yes | |
112+
| ui/images/ui_texture_atlas | 10 | 0.999601 | 7 | 0 / 0 | 445 / 492 | 5 / 7 | 1 / 1 | 1.911 / 1.062 = 0.944 + 0.118 | yes | |
113+
| ui/images/ui_texture_atlas | 5 | 0.999601 | 7 | 0 / 0 | 445 / 492 | 5 / 7 | 1 / 1 | 51.472 / 1.924 = 1.741 + 0.183 | yes | |
114+
| 2d/mesh2d_vertex_color_texture | 10 | 0.998651 | 6 | 0 / 0 | 442 / 495 | 6 / 9 | 1 / 1 | 30.479 / 1.42 = 1.293 + 0.127 | yes | |
115+
| 2d/mesh2d_repeated_texture | 10 | 0.991205 | 17 | 0 / 0 | 437 / 496 | 8 / 10 | 1 / 1 | 22.557 / 1.214 = 1.005 + 0.209 | yes | |
116+
| ui/layout/flex_layout | 10 | 0.990851 | 8 | 0 / 0 | 602 / 492 | 5 / 7 | 1 / 1 | 33.526 / 1.161 = 1.079 + 0.082 | yes | |
117+
| ui/scroll_and_overflow/overflow_clip_margin | 10 | 0.996801 | 9 | 0 / 0 | 465 / 492 | 5 / 7 | 1 / 1 | 29.516 / 1.211 = 1.029 + 0.182 | yes | |
118+
| ui/images/ui_texture_slice | 10 | 0.998957 | 8 | 0 / 0 | 447 / 492 | 5 / 7 | 1 / 1 | 28.996 / 1.018 = 0.863 + 0.155 | yes | |
119+
| ui/images/ui_texture_slice_flip_and_tile | 10 | 1.000000 | 0 | 0 / 0 | 461 / 492 | 5 / 7 | 1 / 1 | 30.548 / 1.22 = 1.038 + 0.182 | yes | |
120+
| ui/images/ui_texture_atlas_slice | 10 | 0.990791 | 17 | 0 / 0 | 447 / 492 | 5 / 7 | 1 / 1 | 31.271 / 2.003 = 1.858 + 0.145 | yes | |
121+
| ui/widgets/button | 10 | 0.999600 | 8 | 0 / 0 | 444 / 492 | 5 / 7 | 1 / 1 | 35.41 / 2.388 = 2.206 + 0.182 | yes | |
122+
| ui/text/letter_spacing | 10 | 0.995902 | 13 | 0 / 0 | 455 / 492 | 5 / 7 | 1 / 1 | 33.351 / 1.215 = 1.088 + 0.127 | yes | |
123+
| ui/styling/borders | 10 | 0.991738 | 9 | 0 / 0 | 591 / 492 | 5 / 7 | 1 / 1 | 30.134 / 0.944 = 0.871 + 0.073 | yes | |
123124

124125
## Excluded
125126

0 commit comments

Comments
 (0)