wgpu
should let app wait until SurfaceTexture
presentation is complete
#2650
Labels
wgpu
should let app wait until SurfaceTexture
presentation is complete
#2650
Is your feature request related to a problem? Please describe.
There's no way to tell when a particular
SurfaceTexture
is done being presented. This makes it hard for programs to match the frame rate of the swapchain.Describe the solution you'd like
wgpu should offer a blocking function or future so that the user can wait until it's worth rendering another frame.
Describe alternatives you've considered
The examples hard-code 60Hz, which is unsatisfying. You could present as fast as possible, but in Mailbox mode this will use the full CPU.
Additional context
Possibly relevant:
The text was updated successfully, but these errors were encountered: