I am engaged on a undertaking to find out the end-to-end latency of a cloud gaming system (i.e., XCloud) on a MacBook.
I consider I’ve half of the method accomplished up to now:
- A Javascript internet app that logs each single time a consumer presses a button on their gamepad utilizing the Mozilla GamePad API. The timestamp is calculated as milliseconds in Unix epoch time from the consumer’s finish.
- The server-side of the net app which locations every button enter and its timestamp right into a database in order that they can be utilized at a later time for latency evaluation.
Utilizing this, I’m able to precisely decide every time I press a button on my gamepad together with the button itself. Now, I want to work out the precise time the corresponding body(s) are displayed onto my display screen.
So far as I perceive, it looks like the widely accepted method to find out on-screen adjustments from gamepad inputs is to arrange a high-speed digicam and seize the precise frames altering on the show. Nonetheless, I might like to make use of a way that may be automated extra simply and takes benefit of the particular {hardware} on my laptop computer.
Is there a special method to this? One which may make the most of my body buffer or can decide pixel change on my display screen? To anybody who’s educated of this or has achieved one thing comparable earlier than, are you able to level me in a greater route? I’ve achieved fairly a little bit of analysis to unravel this drawback, however I am unable to discover something on-line that considerably suits my wants.
Thanks to anybody who’s studying this!