Gawain: Reduce shader interface bucket size
authorClément Foucault <foucault.clem@gmail.com>
Fri, 6 Oct 2017 14:25:38 +0000 (16:25 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Fri, 6 Oct 2017 14:25:50 +0000 (16:25 +0200)
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.

intern/gawain/gawain/gwn_shader_interface.h

index cb2ecb5a1327ae9011d69356acdf24ea3b0a47a1..720cde40b9327233b854f4ecba10df866c38ffdf 100644 (file)
@@ -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;