[Mesa-dev] [PATCH] glx/dri3: Port LIBGL_SHOW_FPS=1 code from DRI2 to DRI3.
kenneth at whitecape.org
Tue Oct 28 13:26:06 PDT 2014
On Tuesday, October 28, 2014 11:12:40 AM Keith Packard wrote:
> Kenneth Graunke <kenneth at whitecape.org> writes:
> > The code is cut-and-pasted from dri2_glx.c; we can't quite share it
> > because we have to use different structures.
> It might be fun to use the UST value provided in the
> PRESENT_COMPLETE_NOTIFY event instead of a local gettimeofday call? That
> way you'd get the presentation time, rather than the time of the swap?
> Otherwise, this all seems fine to me
> Reviewed-by: Keith Packard <keithp at keithp.com>
I had been wondering if we could use that somehow.
Is UST expressed in a particular unit? I thought it was just "monotonically
increasing" but otherwise meaningless. At which point, our FPS would be
"frames per...something?" :)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: This is a digitally signed message part.
More information about the mesa-dev