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
Uh oh!
There was an error while loading. Please reload this page.
-
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_textureblock. 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
Mailboxpresentation mode and thevkGetPastPresentationTimingGOOGLEextension, which would tell me exactly how early I was with thepresentcall, and adjust my wait times and periods according to that information.I looked into using
as_halandget_rawand 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
ashDeviceandSwapchainKHRfrom regularwgpucalls, but I could also integrate the timing info intowgpuas 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