diff options
-rw-r--r-- | src/audio.c | 2 | ||||
-rw-r--r-- | src/main.c | 4 | ||||
-rw-r--r-- | src/render.c | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/src/audio.c b/src/audio.c index 2a7cd37..11c983c 100644 --- a/src/audio.c +++ b/src/audio.c @@ -25,8 +25,6 @@ #include "types.h" -int ppp = 0; - static void audio_mix(void *data, Uint8 *stream8, int len) { AudioContext *a = data; @@ -214,7 +214,7 @@ int main(int argc, char *argv[]) { finished = 0; game->time = 0.0; game->tlast = utils_highresms(); - game->t_fps = game->tlast; + game->t_fps = game->time; while ( !finished ) { int mx, my; @@ -292,7 +292,7 @@ int main(int argc, char *argv[]) { /* Calculate FPS every half a second */ game->frames++; - if ( game->time - game->t_fps > 500 ) { + if ( game->time - game->t_fps > 500.0 ) { game->fps = (500*game->frames) / (game->time - game->t_fps); game->t_fps = game->time; game->frames = 0; diff --git a/src/render.c b/src/render.c index 76821f4..2338057 100644 --- a/src/render.c +++ b/src/render.c @@ -143,7 +143,7 @@ RenderContext *render_setup(int width, int height, int disable_vbos, int disable } else { r->timer_queries = 0; fprintf(stderr, "Timer queries are not supported by your graphics card or driver\n"); - fprintf(stderr, " -> A default estimated time will be used. Framerate may be a little low.\n"); + fprintf(stderr, " -> A default estimated time will be used. Framerate may be lower than it should.\n"); } r->width = width; |