1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add some rendering statistics to profiler

This commit is contained in:
Perttu Ahola 2011-10-17 17:06:28 +03:00
parent e9888c8e25
commit 5037efdea9
2 changed files with 15 additions and 0 deletions

View file

@ -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