bevy/crates/bevy_text
UkoeHB 49a06e9c76
Avoid reallocating spans buffer in TextPipeline (#15012)
# Objective

- Don't reallocate the spans vector every time TextPipeline updates a
buffer.

## Solution

- Cache the spans buffer in `TextPipeline`. This is possible through
some [rust
magic](https://users.rust-lang.org/t/how-to-cache-a-vectors-capacity/94478/10).
2024-09-02 17:02:06 +00:00
..
src Avoid reallocating spans buffer in TextPipeline (#15012) 2024-09-02 17:02:06 +00:00
Cargo.toml Use cosmic-text shaping buffer (#14991) 2024-09-02 17:01:46 +00:00
README.md Add README.md to all crates (#13184) 2024-05-02 18:56:00 +00:00

Bevy Text

License Crates.io Downloads Docs Discord