bevy/crates/bevy_sprite/src
Robert Swain 479f43bbf3 Filter material handles on extraction (#4178)
# Objective

- While optimising many_cubes, I noticed that all material handles are extracted regardless of whether the entity to which the handle belongs is visible or not. As such >100k handles are extracted when only <20k are visible.

## Solution

- Only extract material handles of visible entities.
- This improves `many_cubes -- sphere` from ~42fps to ~48fps. It reduces not only the extraction time but also system commands time. `Handle<StandardMaterial>` extraction and its system commands went from 0.522ms + 3.710ms respectively, to 0.267ms + 0.227ms an 88% reduction for this system for this case. It's very view dependent but...
2022-05-03 18:28:04 +00:00
..
mesh2d Filter material handles on extraction (#4178) 2022-05-03 18:28:04 +00:00
render Move float_ord from bevy_core to bevy_utils (#4189) 2022-04-27 18:02:05 +00:00
bundle.rs Add 2d meshes and materials (#3460) 2022-01-08 01:29:08 +00:00
collide_aabb.rs Add the Inside version to the Collision enum (#2489) 2022-02-01 22:40:25 +00:00
dynamic_texture_atlas_builder.rs Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
lib.rs impl Reflect and Debug for Mesh2dHandle (#4368) 2022-03-30 19:56:17 +00:00
rect.rs Implement the Overflow::Hidden style property for UI (#3296) 2021-12-19 05:44:28 +00:00
sprite.rs can specify an anchor for a sprite (#3463) 2022-04-04 22:09:59 +00:00
texture_atlas_builder.rs small and mostly pointless refactoring (#2934) 2022-02-13 22:33:55 +00:00
texture_atlas.rs can specify an anchor for a sprite (#3463) 2022-04-04 22:09:59 +00:00