diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-03-26 20:25:45 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-03-27 15:01:47 +0300 |
commit | 7ee41920fa0b7ed51a03fe4ee15c6fd782d294a8 (patch) | |
tree | 714908420f080cd068937da0aaa0e4e44873e81e /source/blender/gpu/intern/gpu_viewport.c | |
parent | e54d8eeab2eac9b98bb57a886eb334a812f6487a (diff) |
Draw Manager: New debug timers
Both CPU time and GPU time are printed to spot bottlenecks.
GPU Timers works only if cache is enabled.
Diffstat (limited to 'source/blender/gpu/intern/gpu_viewport.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_viewport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_viewport.c b/source/blender/gpu/intern/gpu_viewport.c index 3e9b7da6d79..dfd84b34c67 100644 --- a/source/blender/gpu/intern/gpu_viewport.c +++ b/source/blender/gpu/intern/gpu_viewport.c @@ -59,7 +59,7 @@ struct GPUViewport { int size[2]; ListBase data; /* ViewportEngineData wrapped in LinkData */ - int data_hash; /* If hash mismatch we free all ViewportEngineData in this viewport */ + unsigned int data_hash; /* If hash mismatch we free all ViewportEngineData in this viewport */ FramebufferList *fbl; TextureList *txl; @@ -146,7 +146,7 @@ void GPU_viewport_size_get(GPUViewport *viewport, int *size) size[1] = viewport->size[1]; } -bool GPU_viewport_cache_validate(GPUViewport *viewport, int hash) +bool GPU_viewport_cache_validate(GPUViewport *viewport, unsigned int hash) { bool dirty = false; |