X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=progs%2Fdemos%2Fclearspd.c;h=42953f6675e01bd5fa3458f19d5e1515925c6437;hb=49f82803cc6ceaf1ecc3928a5417ef300f73f37d;hp=706e698bd90363de00f30cb391273a09d584faad;hpb=fdd631a941b4c71c50b64cea2575ab0e3bbe1968;p=mesa.git diff --git a/progs/demos/clearspd.c b/progs/demos/clearspd.c index 706e698bd90..42953f6675e 100644 --- a/progs/demos/clearspd.c +++ b/progs/demos/clearspd.c @@ -1,4 +1,3 @@ -/* $Id: clearspd.c,v 1.4 2002/04/22 16:03:37 brianp Exp $ */ /* * Simple GLUT program to measure glClear() and glutSwapBuffers() speed. @@ -61,6 +60,12 @@ static void Display( void ) glutSwapBuffers(); } + /* NOTE: If clearspd doesn't map it's window immediately on + * starting, swaps will be istantaneous, so this will send Loops + * towards infinity. When a window is finally mapped, it may be + * minutes before the first call to glutSwapBuffers, making it look + * like there's a driver bug. + */ if (t1-t0 < MinPeriod) { /* Next time do more clears to get longer elapsed time */ Loops *= 2;