Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

canvas::Cache Grouping #2415

Merged
merged 7 commits into from
Apr 30, 2024
Merged

canvas::Cache Grouping #2415

merged 7 commits into from
Apr 30, 2024

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Apr 30, 2024

This PR introduces a new constructor for canvas::Cache called with_group. This method can be used to group the caches of a canvas (or even different ones!) together in an application.

Cache groups serve as a hint that certain sets of primitives are likely to change together; enabling different kinds of optimizations in a renderer. For now, cache groups share the same text atlas when using iced_wgpu.

@hecrj hecrj added this to the 0.13 milestone Apr 30, 2024
@hecrj hecrj merged commit 89892f1 into master Apr 30, 2024
24 checks passed
@hecrj hecrj deleted the feature/canvas-cache-groups branch April 30, 2024 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant