Integrating vkGetPastPresentationTimingGOOGLE: where to start? #3902
Replies: 2 comments
-
There has been some work done on this by @cwfitzgerald in the context of #2869 . |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks. I've been wondering why there's a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm writing an Augmented Reality application, targeting android phones. Our top priority is that latency (the time between the buffer update and the rendered frame actually reaching the displayport cable) has to be the absolute minimum. Theoretically it could be around 25ms (one and a half frames at 60FPS). Right now we have 45ms, because we are forced to use Fifo presentation mode (i.e. triple buffering instead of double), and the only way to have preciuse frame timing is to let
.get_current_texture
block. I cannot stress how important that ~20ms additional delay is: it makes the image look like it's being held with rubber bands.What I'd like to do is use
Mailbox
presentation mode and thevkGetPastPresentationTimingGOOGLE
extension, which would tell me exactly how early I was with thepresent
call, and adjust my wait times and periods according to that information.I looked into using
as_hal
andget_raw
and friends inwgpu
, and then using the function pointer exposed byash
, but unfortunately I cannot get hold of the SwapchainKHR object deep withinwgpu
.Now as an absolute minimum, it would be great to just get the
ash
Device
andSwapchainKHR
from regularwgpu
calls, but I could also integrate the timing info intowgpu
as an optional extension function. I just don't really know where to start, and what are the policies for Pull requests, etc.BR,
Alex
Beta Was this translation helpful? Give feedback.
All reactions