Repository navigation
Replies: 1 comment 1 reply
|
There is no need to create a discussion to accompany a PR. (If you want the problem to be tracked separately from the proposed solution, please create an issue instead.) |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi! I'm new here! I've been doing graphics, GPU, and geometry-adjacent work for nearly 17 years, currently on the Motif.io graphics/visualization team. While profiling in our Bevy app in wasm, I noticed that map_wgt_limits was showing up every frame, and that call was unusually expensive. Digging in, it became apparent that in a native environment
wgpu-corestores the rust struct, so the query is just a clone. However, in wasm, there is no stored copy, that struct gets rebuilt from the JS object every call,Limitsis a rather large struct, so the rebuild is non-trivial.This PR aims to cache three info getters on
WebAdapterandWebDevice:Limits,Features, andAdapterInfo.All reactions