Expose maximum_frame_latency from wgpu to Bevy users #12930
Labels
A-Rendering
Drawing game state to the screen
A-UI
Graphical user interfaces, styles, layouts, and widgets
C-Performance
A change motivated by improving speed, memory usage or compile times
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
What problem does this solve or what need does it fill?
gfx-rs/wgpu#4899 exposes control over the maximum number of frames that should be buffered.
As the linked docs explain
What solution would you like?
Bevy should offer users control over this and document that it exists. We should consider whether to leave this as a manual call, a plugin parameter, or a synchronized resource-based setting. I think that runtime changes to this will be extremely rare, so my preference is a plugin parameter with a documented escape hatch to change the value manually.
What alternative(s) have you considered?
When pipelined rendering is disabled, we should consider swapping to 1, or suggesting that users do so. The sequential-CPU-GPU pattern is what we're already doing in that case, so the lower latency might be a good choice.
Additional context
Thanks to @aevyrie for mentioning this. @JMS55 points out that we're currently defaulting to 2.
The text was updated successfully, but these errors were encountered: