[PATCH] glretrace: Use GL_TIMESTAMP (if available) for CPU profiling.
Carl Worth
cworth at cworth.org
Sat Dec 8 11:46:04 PST 2012
José Fonseca <jose.r.fonseca at gmail.com> writes:
> Ok. I think I understand now what you're trying to do.
Great.
> But you should be using glGetInteger(GL_TIMESTAMP) to get the current
> time, as GL_TIMESTAMP queries will give you not the current time, but
> the time when the draw call is processed by the GPU (some time later).
Yes, for the CPU timings I do want the time *now*, not later, so if you
fixed my code to be more instantaneous here, that will be great.
> I only tested on softpipe and need to test on real HW before commit.
>
> Let me know if it works for you.
Excellent. I'll take a look at this early next week and get back to you
on what I find.
-Carl
--
carl.d.worth at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/apitrace/attachments/20121208/0d345f43/attachment.pgp>
More information about the apitrace
mailing list