Compute pass, render pass, and bundle recording may be slow
Categories
(Core :: Graphics: WebGPU, enhancement, P5)
Tracking
()
People
(Reporter: kvark, Unassigned)
References
(Blocks 1 open bug)
Details
In https://phabricator.services.mozilla.com/D94908 we start to serialize compute/render pass contents with bincode. It would be nice to do that on the fly as the passes are recorded (in wgpu) instead of doing it in two stages. This may or may not be a problem - we'll need to see how heavy this copy is in the profiles.
| Reporter | ||
Comment 1•5 years ago
|
||
To clarify, this is what our pass command recording does currently for dispatches: https://searchfox.org/mozilla-central/rev/a23e65c5d69a821f61d14c8ec1f69a120e3f77d1/gfx/wgpu/wgpu-core/src/command/compute.rs#605
When recording a pass, we are appending to the list of commands. The question here is whether we can just send these commands to bincode right away. That would require changes to wgpu-core.
Updated•2 years ago
|
Updated•1 year ago
|
Comment 2•1 year ago
|
||
This has been done for render passes and compute passes, but we still need to do this for render bundles.
Updated•1 year ago
|
Updated•1 year ago
|
Description
•