Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

make Meshes cheaply cloneable by using Arc<[T]> in iced_graphics::mesh::Indexed #3070

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

Open
edwloef wants to merge 1 commit into iced-rs:master
base: master
Choose a base branch
Loading
from edwloef:cheap_mesh_clone

Conversation

@edwloef
Copy link
Contributor

@edwloef edwloef commented Oct 4, 2025
edited
Loading

I have large meshes that I'd like to not have to recreate/clone every time I draw them. When using wgpu I can use a iced_wgpu::geometry::Cache, however this doesn't work for other renderers. Since you can't query the renderer's type at runtime it makes sense to me to make reuse possible with this change.

mahlquistj reacted with hooray emoji
Copy link
Contributor Author

edwloef commented Oct 4, 2025

Failing CI is from an upstream rustdoc change: rust-lang/rust#138907

Copy link

This is great. We have ~25% performance increase by reusing the meshes! Hoping this gets merged soon! 👍

edwloef reacted with heart emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /