-
Committer:
Tarmac
-
Author(s):
Daniel van Vugt
-
Date:
2015-04-08 06:31:54 UTC
-
mfrom:
(2442.2.46 target)
-
Revision ID:
tarmac-20150408063154-j34niwgx23ayqnxq
Introducing mir_demo_client_target, for visual testing of input latency.
This provides a visual scale by which to grade input latency, particularly
when watching the mouse pointer. Such a small scale is required if you are
to reliably see any improvement (or regression) of only a few milliseconds
latency.
mir_demo_client_target also does its own input sampling in place of
Mir's default resampling, so achieves about half a frame lower latency on
average. Even with the default swap interval of one. Although forcing swap
interval to zero (-n option) reduces visible latency even more. Doing its
own sampling also allows mir_demo_client_target to render at the full
native frame rate, rather than being limited by the Mir input resampling
rate.
Tip: If you find it hard to see the cursor against the target then using
the zoom feature (Super+mousewheel) of mir_proving_server helps. Because
that will visually amplify any offset.
Approved by PS Jenkins bot, Robert Carr, Alan Griffiths.