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.
This commit is contained in:
Clément Foucault
2022-09-06 10:57:22 +02:00
parent 6602f30225
commit d7a67e245d

View File

@@ -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);