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:
parent
e9888c8e25
commit
5037efdea9
2 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue