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:
authorClément Foucault <foucault.clem@gmail.com>2017-10-06 17:25:38 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-10-06 17:25:50 +0300
commita4a5637d7affae66900e60c635c3d25f5009dfd7 (patch)
tree63c05e988e0f30eb4b7ca301a5c5398fa528514c /intern/gawain
parentf94f141f241608f6475082603df6f15d812b1ab7 (diff)
Gawain: Reduce shader interface bucket size
Tried 101 but it gives colisions. I think 257 is enough now that we dont have thousands of uniforms. This gives some noticeable performance improvement. Could be refined further.
Diffstat (limited to 'intern/gawain')
-rw-r--r--intern/gawain/gawain/gwn_shader_interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/gawain/gawain/gwn_shader_interface.h b/intern/gawain/gawain/gwn_shader_interface.h
index cb2ecb5a132..720cde40b93 100644
--- a/intern/gawain/gawain/gwn_shader_interface.h
+++ b/intern/gawain/gawain/gwn_shader_interface.h
@@ -42,7 +42,7 @@ typedef struct Gwn_ShaderInput {
GLint location;
} Gwn_ShaderInput;
-#define GWN_NUM_SHADERINTERFACE_BUCKETS 1009
+#define GWN_NUM_SHADERINTERFACE_BUCKETS 257
typedef struct Gwn_ShaderInterface {
GLint program;