maplibre-rs
maplibre-rs copied to clipboard
Use browser API to decode images
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