From c7d0266c6e4ae20d60cd1ce2e7f6c2fc23486345 Mon Sep 17 00:00:00 2001 From: sandalle Date: Tue, 17 Jun 2003 20:06:32 +0000 Subject: [PATCH] First group of patches: Adds single-buffered rendering (or its emulation) in Windows. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@67 7f0cb862-5218-0410-a997-914c9d46530a --- .../freeglut/freeglut-1.3/freeglut_display.c | 16 ---------------- .../freeglut/freeglut-1.3/freeglut_internal.h | 4 ---- 2 files changed, 20 deletions(-) diff --git a/freeglut/freeglut/freeglut-1.3/freeglut_display.c b/freeglut/freeglut/freeglut-1.3/freeglut_display.c index d6ce1cb..900b9d0 100644 --- a/freeglut/freeglut/freeglut-1.3/freeglut_display.c +++ b/freeglut/freeglut/freeglut-1.3/freeglut_display.c @@ -92,22 +92,6 @@ void FGAPIENTRY glutSwapBuffers( void ) SwapBuffers( fgStructure.Window->Window.Device ); #endif - - /* GLUT_FPS env var support */ - if (fgState.FPSInterval) { - GLint t = glutGet(GLUT_ELAPSED_TIME); - fgState.SwapCount++; - if (fgState.SwapTime == 0) - fgState.SwapTime = t; - else if (t - fgState.SwapTime > fgState.FPSInterval) { - float time = 0.001 * (t - fgState.SwapTime); - float fps = (float) fgState.SwapCount / time; - fprintf(stderr, "FreeGLUT: %d frames in %.2f seconds = %.2f FPS\n", - fgState.SwapCount, time, fps); - fgState.SwapTime = t; - fgState.SwapCount = 0; - } - } } /* diff --git a/freeglut/freeglut/freeglut-1.3/freeglut_internal.h b/freeglut/freeglut/freeglut-1.3/freeglut_internal.h index d8d50d8..bb93080 100644 --- a/freeglut/freeglut/freeglut-1.3/freeglut_internal.h +++ b/freeglut/freeglut/freeglut-1.3/freeglut_internal.h @@ -220,10 +220,6 @@ struct tagSFG_State GLboolean IgnoreKeyRepeat; /* Whether to ignore key repeat... */ - GLuint FPSInterval; /* Interval between FPS printfs */ - GLuint SwapCount; /* Count of glutSwapBuffer calls */ - GLuint SwapTime; /* Time of last SwapBuffers */ - SFG_Time Time; /* The time that glutInit was called */ SFG_List Timers; /* The freeglut timer hooks */