diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-09-06 11:57:22 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-09-06 12:12:38 +0300 |
commit | d7a67e245d700df73404967819ba62186bf049d9 (patch) | |
tree | aaa9ca7423909aa564933702e38a350f35a85b64 /source | |
parent | 6602f3022545f1bfd86b12390289b9c39df727d7 (diff) |
DRW: remove consistent debug buffer bind
This avoids the overhead of debug drawing when not debugging
anything or even not using the new draw manager.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/intern/draw_manager.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_manager.cc b/source/blender/draw/intern/draw_manager.cc index 41ff974e835..169d86b2ea1 100644 --- a/source/blender/draw/intern/draw_manager.cc +++ b/source/blender/draw/intern/draw_manager.cc @@ -62,7 +62,9 @@ void Manager::end_sync() attributes_buf.push_update(); attributes_buf_legacy.push_update(); - debug_bind(); + /* Useful for debugging the following resource finalize. But will trigger the drawing of the GPU + * debug draw/print buffers for every frame. Not nice for performance. */ + // debug_bind(); /* Dispatch compute to finalize the resources on GPU. Save a bit of CPU time. */ uint thread_groups = divide_ceil_u(resource_len_, DRW_FINALIZE_GROUP_SIZE); |