-/* $Id: clearspd.c,v 1.2 2000/04/10 16:25:15 brianp Exp $ */
+/* $Id: clearspd.c,v 1.3 2000/12/07 21:50:39 brianp Exp $ */
/*
* Simple GLUT program to measure glClear() and glutSwapBuffers() speed.
/*
* $Log: clearspd.c,v $
+ * Revision 1.3 2000/12/07 21:50:39 brianp
+ * call glFinish() before getting t1 time
+ *
* Revision 1.2 2000/04/10 16:25:15 brianp
* fixed visual selection and reporting results
*
glClear( BufferMask );
glutSwapBuffers();
}
+ glFinish();
t1 = glutGet(GLUT_ELAPSED_TIME) * 0.001;
}
else {
t0 = glutGet(GLUT_ELAPSED_TIME) * 0.001;
for (i=0;i<Loops;i++) {
glClear( BufferMask );
- glFlush();
}
+ glFinish();
t1 = glutGet(GLUT_ELAPSED_TIME) * 0.001;
glutSwapBuffers();
}