Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Steiblys <imbusy@imbusy.org>2010-11-26 14:20:03 +0300
committerLukas Steiblys <imbusy@imbusy.org>2010-11-26 14:20:03 +0300
commitd3ec9753c4f535506d477bc96b143d34942394a4 (patch)
tree238fd4b2f493507deb3add25238de8b067baf719 /source/blender/gpu
parentb8572527dfe3d7c1372d1c050bbd02550439dc0b (diff)
freeing all free GPU buffers every frame could be a performance issue and is not necessary
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_draw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c
index a93d8cbbb8e..a3a42054cbc 100644
--- a/source/blender/gpu/intern/gpu_draw.c
+++ b/source/blender/gpu/intern/gpu_draw.c
@@ -810,7 +810,8 @@ void GPU_free_unused_buffers(void)
BLI_freelistN(&image_free_queue);
/* vbo buffers */
- GPU_buffer_pool_free_unused(0);
+ /* it's probably not necessary to free all buffers every frame */
+ /* GPU_buffer_pool_free_unused(0); */
BLI_unlock_thread(LOCK_OPENGL);
}