Commit: a4a5637d7affae66900e60c635c3d25f5009dfd7
Author: Clément Foucault
Date:   Fri Oct 6 16:25:38 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBa4a5637d7affae66900e60c635c3d25f5009dfd7

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.

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

M       intern/gawain/gawain/gwn_shader_interface.h

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

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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to