From 5037efdea9bd3fc86c1df5200e71741c98627b00 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 17 Oct 2011 17:06:28 +0300 Subject: Add some rendering statistics to profiler --- src/game.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index e666e084d..78962c18c 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1071,6 +1071,7 @@ void the_game( object_hit_delay_timer -= dtime; g_profiler->add("Elapsed time", dtime); + g_profiler->avg("FPS", 1./dtime); /* Log frametime for visualization -- cgit v1.2.3