~andreas-pokorny/mir/treat-pause-like-focus-lost-and-resume-like-focus-gained

Viewing all changes in revision 3448.

acceptance-tests: Record ClientLatency in the right place.

The test increments the virtual vsync counter and records latency at the
same time. However the granularity of our measurements is whole frame
numbers, so recording latency before incrementing the frame number was
causing a latency of zero to be recorded, and N instead of N+1. This
was not correct because we aim for render times closer to zero than
one frame, and even if that's not achieved you should measure the
age of a frame from when it started getting rendered. So this makes
the recorded latency more accurate, shifting all the numbers up by 
one. This way any frame rendered in the frame interval immediately
prior has a latency of one and not zero frames.
.

Approved by mir-ci-bot, Kevin DuBois.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: