[Bf-blender-cvs] [1c98539b57a] master: Depsgraph: Correct FPS debug print

Sergey Sharybin noreply at git.blender.org
Fri Jan 24 16:49:49 CET 2020


Commit: 1c98539b57a463ee3a284ffbfdde05837a1c417e
Author: Sergey Sharybin
Date:   Fri Jan 24 16:45:32 2020 +0100
Branches: master
https://developer.blender.org/rB1c98539b57a463ee3a284ffbfdde05837a1c417e

Depsgraph: Correct FPS debug print

It was printing "frame" time instead of FPS.

Other interesting thing to get solved is to solve "drop" in FPS
when there is an idle time in user input.

Current usecase is limited to observing FPS when there is a continuous
stream of events: for example, keep moving vertex in edit mode while
watching debug prints.

===================================================================

M	source/blender/depsgraph/intern/debug/deg_debug.cc

===================================================================

diff --git a/source/blender/depsgraph/intern/debug/deg_debug.cc b/source/blender/depsgraph/intern/debug/deg_debug.cc
index 00ff73b8f63..74a042989db 100644
--- a/source/blender/depsgraph/intern/debug/deg_debug.cc
+++ b/source/blender/depsgraph/intern/debug/deg_debug.cc
@@ -67,7 +67,7 @@ void DepsgraphDebug::end_graph_evaluation()
 
   const double graph_eval_end_time = PIL_check_seconds_timer();
   printf("Depsgraph updated in %f seconds.\n", graph_eval_end_time - graph_evaluation_start_time_);
-  printf("Depsgraph evaluation FPS: %f\n", fps_samples_.get_averaged());
+  printf("Depsgraph evaluation FPS: %f\n", 1.0f / fps_samples_.get_averaged());
 
   is_ever_evaluated = true;
 }



More information about the Bf-blender-cvs mailing list