[Bf-blender-cvs] [e36af2c] blender2.8: Gawain: increase size of immediate mode buffer

Mike Erwin noreply at git.blender.org
Sun Aug 14 00:16:45 CEST 2016


Commit: e36af2c2579f7794cdad093b6ef3b95d3367bcaa
Author: Mike Erwin
Date:   Sat Aug 13 16:31:44 2016 -0400
Branches: blender2.8
https://developer.blender.org/rBe36af2c2579f7794cdad093b6ef3b95d3367bcaa

Gawain: increase size of immediate mode buffer

New value of 4MB should handle our needs without taking up too many GPU
resources.

Old value of 1KB was for observing what happens when the buffer fills up
and we need to flush and start a new one.

===================================================================

M	source/blender/gpu/intern/gpu_immediate.c

===================================================================

diff --git a/source/blender/gpu/intern/gpu_immediate.c b/source/blender/gpu/intern/gpu_immediate.c
index 5912570..e8a59c4 100644
--- a/source/blender/gpu/intern/gpu_immediate.c
+++ b/source/blender/gpu/intern/gpu_immediate.c
@@ -258,8 +258,7 @@ typedef struct {
 } Immediate;
 
 // size of internal buffer -- make this adjustable?
-// #define IMM_BUFFER_SIZE (4 * 1024 * 1024)
-#define IMM_BUFFER_SIZE 1024
+#define IMM_BUFFER_SIZE (4 * 1024 * 1024)
 
 static PER_THREAD bool initialized = false;
 static PER_THREAD Immediate imm;




More information about the Bf-blender-cvs mailing list