summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-14 22:53:48 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-14 22:53:48 +0100
commit893eb770f9c3dbe8c265fcabf197d3ed43d7784a (patch)
treef2f2cbbbd7ce136367aaa46e2d0c76eee33892cd
parent11e58a92f540740a297eb131819c59d6a077567a (diff)
downloadcv-893eb770f9c3dbe8c265fcabf197d3ed43d7784a.tar.gz
cv-893eb770f9c3dbe8c265fcabf197d3ed43d7784a.tar.bz2
cv-893eb770f9c3dbe8c265fcabf197d3ed43d7784a.zip
wimmel_gl: Remove unneeded fps calculation
-rw-r--r--wimmel_gl.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/wimmel_gl.c b/wimmel_gl.c
index cc08e02..2a42109 100644
--- a/wimmel_gl.c
+++ b/wimmel_gl.c
@@ -143,16 +143,6 @@ draw(void)
};
float search[4];
int barrier = mwidth * mheight / 2;
- static int frames = 0;
- static int last_time = 0;
- int elapsed = glutGet(GLUT_ELAPSED_TIME);
-
- ++frames;
- if ((elapsed - last_time) >= 5000) {
- printf("fps: %d\n", frames / 5);
- last_time = elapsed;
- frames = 0;
- }
glClear(GL_COLOR_BUFFER_BIT);