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:
authorMike Erwin <significant.bit@gmail.com>2016-08-13 23:31:44 +0300
committerMike Erwin <significant.bit@gmail.com>2016-08-13 23:31:44 +0300
commite36af2c2579f7794cdad093b6ef3b95d3367bcaa (patch)
tree6bb8ced5ca77f50278d4146ddf6ceeff8cd7e205 /source/blender/gpu/intern/gpu_immediate.c
parentdfbc51f764a8f7e51b9982253685142b8624e8f8 (diff)
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.
Diffstat (limited to 'source/blender/gpu/intern/gpu_immediate.c')
-rw-r--r--source/blender/gpu/intern/gpu_immediate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_immediate.c b/source/blender/gpu/intern/gpu_immediate.c
index 5912570f1c4..e8a59c4854a 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;