medfall

A super great game engine
Log | Files | Refs

commit c7ede2c7989221dc79a221452bdb13274045b9a4
parent fdb946a5de01a3bbf38d4779baebf7756ae51e7b
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Jun  3 01:18:50 +0300

Profiler summary at exit

Diffstat:
main.cc | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/main.cc b/main.cc @@ -7,6 +7,7 @@ #include "intrinsics.h" #include "gl.h" #include "keys.h" +#include "profiler.h" #include "work_queue.h" #include "shaders.h" #include "text_renderer.h" @@ -121,6 +122,8 @@ int main( int argc, char ** argv ) { shaders_term(); gl_term(); + profiler_write_summary(); + printf( "FPS: %.1f\n", total_frames / program_run_time ); return 0;