1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 14:50:03 -04:00

Add a galley cache to Fonts to avoid doing the same layout each frame

This commit is contained in:
Emil Ernerfeldt
2021-03-29 22:06:55 +02:00
parent f9c4be33a7
commit 94baf98eab
5 changed files with 135 additions and 12 deletions

View File

@@ -26,6 +26,7 @@ emath = { version = "0.10.0", path = "../emath" }
ahash = { version = "0.7", features = ["std"], default-features = false }
atomic_refcell = { version = "0.1", optional = true } # Used instead of parking_lot when you are always using epaint in a single thread. About as fast as parking_lot. Panics on multi-threaded use.
ordered-float = "2"
parking_lot = { version = "0.11", optional = true } # Using parking_lot over std::sync::Mutex gives 50% speedups in some real-world scenarios.
rusttype = "0.9"
serde = { version = "1", features = ["derive"], optional = true }