Use cosmic-text shaping buffer (#14991)

# Objective

- Improve performance of `cosmic-text` integration.

## Solution

- Activate the `shape-run-cache` feature to improve amortized cost of
spawning/updating text.
This commit is contained in:
UkoeHB 2024-09-02 12:01:46 -05:00 committed by GitHub
parent be100b8760
commit f02d76a44d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,7 @@ bevy_window = { path = "../bevy_window", version = "0.15.0-dev" }
bevy_utils = { path = "../bevy_utils", version = "0.15.0-dev" }
# other
cosmic-text = "0.12"
cosmic-text = { version = "0.12", features = ["shape-run-cache"] }
thiserror = "1.0"
serde = { version = "1", features = ["derive"] }
unicode-bidi = "0.3.13"