diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-10-05 19:26:50 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-10-06 02:50:51 +0300 |
commit | d7d32ad45217736c677edd22906d980d03aeb175 (patch) | |
tree | 4f1a6c0b2102226ea50d9510dfa2996fb562794e /source/blender/python/intern/bpy.c | |
parent | 9ab3db11c797e1ec64446aa9ee2e91f3020ec772 (diff) |
Gawain: Simplify / optimize the shader interface.
This changes quite a few things:
- Drops the allocation of inputs as a chunk.
- Merge the linked list system into the Gwn_ShaderInput.
- Put name buffer into another memory block, easily resizable.
- Use offset instead of char* to direct to input name.
- Add only requested uniforms dynamicaly to the Shader Interface.
This drops some minor optimisation and use a bit more memory for small shaders (which are fixed count).
But this saves a lot of memory when using UBOs because the names and the Gwn_ShaderInput were alloc'ed for every UBO variable.
This also reduce the Shader Interface initial generation.
The lookup time is left unchanged.
Diffstat (limited to 'source/blender/python/intern/bpy.c')
0 files changed, 0 insertions, 0 deletions