Skip to content

Commit

Permalink
Use cosmic-text shaping buffer (#14991)
Browse files Browse the repository at this point in the history
# Objective

- Improve performance of `cosmic-text` integration.

## Solution

- Activate the `shape-run-cache` feature to improve amortized cost of
spawning/updating text.
  • Loading branch information
UkoeHB authored Sep 2, 2024
1 parent be100b8 commit f02d76a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_text/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f02d76a

Please sign in to comment.