diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-03-17 06:47:26 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-03-17 19:02:07 +0300 |
commit | dd4424821918f2e12d6e61dd265be11c669efeb0 (patch) | |
tree | 2fbd09d38f55e6a53249e59ab4be2bca022ab86b /source/blender/draw/intern/draw_manager.h | |
parent | 9ed7093aa639f31e9ba5b146d2d88bae942ab424 (diff) |
DRW: Move cache time to GPUViewport for profiling
This enables us to average this timer over time like the others.
Diffstat (limited to 'source/blender/draw/intern/draw_manager.h')
-rw-r--r-- | source/blender/draw/intern/draw_manager.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/draw/intern/draw_manager.h b/source/blender/draw/intern/draw_manager.h index 6d4eee08ad6..c7e9b3dc08d 100644 --- a/source/blender/draw/intern/draw_manager.h +++ b/source/blender/draw/intern/draw_manager.h @@ -52,7 +52,7 @@ #ifdef USE_PROFILE # include "PIL_time.h" -# define PROFILE_TIMER_FALLOFF 0.1 +# define PROFILE_TIMER_FALLOFF 0.04 # define PROFILE_START(time_start) \ double time_start = PIL_check_seconds_timer(); @@ -304,9 +304,6 @@ typedef struct DRWManager { bool buffer_finish_called; /* Avoid bad usage of DRW_render_instance_buffer_finish */ - /* Profiling */ - double cache_time; - /* View dependant uniforms. */ DRWMatrixState original_mat; /* Original rv3d matrices. */ int override_mat; /* Bitflag of which matrices are overriden. */ |