diff --git a/source/src/main.cpp b/source/src/main.cpp index 34727326..f42bcc12 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -452,12 +452,15 @@ int main(int argc, char **argv) serverslice(0); frames++; - fps = (1000.0f/elapsed+fps*10)/11; computeraytable(camera1->o.x, camera1->o.y); if(frames>4) SDL_GL_SwapBuffers(); extern void updatevol(); updatevol(); - if(frames>3) gl_drawframe(screen->w, screen->h, fpshighfps ? fps/highfps : 1.0f), fps); + if(frames>3) + { + fps = (1000.0f/elapsed+fps*10)/11; + gl_drawframe(screen->w, screen->h, fpshighfps ? fps/highfps : 1.0f), fps); + } //SDL_Delay(100); SDL_Event event; int lasttype = 0, lastbut = 0;