This commit makes Bevy use change detection to only update `RenderMaterialInstances` and `RenderMeshMaterialIds` when meshes have been added, changed, or removed. `extract_mesh_materials`, the system that extracts these, now follows the pattern that `extract_meshes_for_gpu_building` established. This improves frame time of `many_cubes` from 3.9ms to approximately 3.1ms, which slightly surpasses the performance of Bevy 0.14. (Resubmitted from #16878 to clean up history.)  --------- Co-authored-by: Charlotte McElwain <charlotte.c.mcelwain@gmail.com> Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> |
||
|---|---|---|
| .. | ||
| color_material.rs | ||
| color_material.wgsl | ||
| material.rs | ||
| mesh2d_bindings.wgsl | ||
| mesh2d_functions.wgsl | ||
| mesh2d_types.wgsl | ||
| mesh2d_vertex_output.wgsl | ||
| mesh2d_view_bindings.wgsl | ||
| mesh2d_view_types.wgsl | ||
| mesh2d.wgsl | ||
| mesh.rs | ||
| mod.rs | ||
| wireframe2d.rs | ||
| wireframe2d.wgsl | ||