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鈥檒l 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 · 0 comments
Open

Use browser API to decode images #258

maxammann opened this issue Feb 18, 2023 · 0 comments
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
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