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

Use browser API to decode images #258

Open
maxammann opened this issue Feb 18, 2023 · 1 comment
Open

Use browser API to decode images #258

maxammann opened this issue Feb 18, 2023 · 1 comment
Labels
feature-request Request for a new feature

Comments

@maxammann
Copy link
Collaborator

We use right now the image create to read PNG files. We also use this in the web version of maplibre-rs. Using the native decoder could speed up the decoding drastically.

🤔 Expected Behavior

Speed!

😯 Current Behavior

It's not slow but also not super fast.

💁 Possible Solution

Since wgpu 15.0 there is support to queue textures from webassembly: https://github.com/gfx-rs/wgpu/blob/master/CHANGELOG.md#queuecopy_external_image_to_texture-on-webassembly

@maxammann maxammann added the feature-request Request for a new feature label Feb 18, 2023
@maxammann maxammann added this to the Alpha Release 0.1.0 milestone Jul 26, 2024
@maxammann
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for a new feature
Projects
None yet
Development

No branches or pull requests

1 participant