diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2002-10-31 12:38:32 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2002-10-31 12:38:32 +0000 |
commit | 9627ed0631240044bbcf0f071d635c08b853ae4d (patch) | |
tree | e056ff270683033031b4fe6c4f35a51e9b4c3540 /progs/demos/clearspd.c | |
parent | 8d439768589ca61b24c006c2fdb21401d4de67ec (diff) |
Add a note about window map behaviour and the autotuning of nr of loops which
can conspire to make it look like clearspd is exposing an intermittent driver
bug...
Diffstat (limited to 'progs/demos/clearspd.c')
-rw-r--r-- | progs/demos/clearspd.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/progs/demos/clearspd.c b/progs/demos/clearspd.c index 706e698bd90..c9a4e2630f8 100644 --- a/progs/demos/clearspd.c +++ b/progs/demos/clearspd.c @@ -1,4 +1,4 @@ -/* $Id: clearspd.c,v 1.4 2002/04/22 16:03:37 brianp Exp $ */ +/* $Id: clearspd.c,v 1.5 2002/10/31 12:38:32 keithw Exp $ */ /* * Simple GLUT program to measure glClear() and glutSwapBuffers() speed. @@ -61,6 +61,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; |