bevy/crates/bevy_sprite/src
Rob Parrett 150eec7535
Fix Text2d performance regression (#16991)
# Objective

Probably fixes #16972

## Solution

With 100k text2d, tracy was showing most time being spent in
`extract_components<bevy_sprite::SpriteSource>`.


![image](https://github.com/user-attachments/assets/e82d5d4e-bb39-4d7e-ab7f-47a5466cb74f)

Browsing Bevy's code, this `SpriteSource` component is seemingly not
even used in the render world. So I just ~~deleted the code that was
extracting it~~ it.

## Testing

`cargo run --example text2d` still seems to work.

The example from [my
comment](https://github.com/bevyengine/bevy/issues/16972#issuecomment-2562680876)
in the linked issue shows a ~50x speedup.
2024-12-29 23:14:33 +00:00
..
mesh2d Change GpuImage::size from UVec2 to Extent3d (#16815) 2024-12-17 19:08:09 +00:00
render Change GpuImage::size from UVec2 to Extent3d (#16815) 2024-12-17 19:08:09 +00:00
texture_slice BorderRect maintenance (#16727) 2024-12-12 04:33:44 +00:00
bundle.rs Improved UiImage and Sprite scaling and slicing APIs (#16088) 2024-11-04 15:14:03 +00:00
dynamic_texture_atlas_builder.rs Remove unnecessary cast in DynamicTextureAtlasBuilder (#16937) 2024-12-24 17:14:06 +00:00
lib.rs Fix Text2d performance regression (#16991) 2024-12-29 23:14:33 +00:00
picking_backend.rs Add optional transparency passthrough for sprite backend with bevy_picking (#16388) 2024-12-03 19:32:52 +00:00
sprite.rs Remove the type parameter from check_visibility, and only invoke it once. (#16812) 2024-12-17 04:43:45 +00:00
texture_atlas_builder.rs Update hashbrown to 0.15 (#15801) 2024-12-10 19:45:50 +00:00
texture_atlas.rs Don't reëxport bevy_image from bevy_render (#16163) 2024-11-10 06:54:38 +00:00