Skip to content

Commit

Permalink
Better glyph caching (#555)
Browse files Browse the repository at this point in the history
* retained encoded glyph caching

This enables caching for variable glyphs, adds support for pruning the cache and retains the Resolver in the Renderer struct so that glyphs can be cached across frames.

* use Rc rather than tracking indices

* clippy again :/

* bevy hates Rc
  • Loading branch information
dfrg authored Apr 23, 2024
1 parent 45c872a commit 905d671
Show file tree
Hide file tree
Showing 8 changed files with 247 additions and 193 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ skrifa = "0.19.0"
peniko = "0.1.0"
futures-intrusive = "0.5.0"
raw-window-handle = "0.6.0"
smallvec = "1.13.2"

# NOTE: Make sure to keep this in sync with the version badge in README.md
wgpu = { version = "0.19.3" }
Expand Down
1 change: 1 addition & 0 deletions crates/encoding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ bytemuck = { workspace = true }
skrifa = { workspace = true, optional = true }
peniko = { workspace = true }
guillotiere = { version = "0.6.2", optional = true }
smallvec = { workspace = true }
Loading

0 comments on commit 905d671

Please sign in to comment.