Blender Git Commit Log

Git Commits -> Revision 5738900

Revision 5738900 by Thomas Dinges (soc-2014-cycles)
July 21, 2014, 22:56 (GMT)
Cycles: Memory optimization for shader id.

Pack the shader ID into the vert index float4 (which still had one empty component).
This way we save 1 float per mesh triangle.

As a bonus, this gives 1 GPU image texture slot back to sm_2x users.

Commit Details:

Full Hash: 5738900060e73adf3f2cd00ba48ad815a83baa1b
Parent Commit: aac45d4
Lines Changed: +39, -44

9 Modified Paths:

/intern/cycles/kernel/geom/geom_bvh_shadow.h (+2, -1) (Diff)
/intern/cycles/kernel/geom/geom_motion_triangle.h (+5, -4) (Diff)
/intern/cycles/kernel/geom/geom_triangle.h (+4, -4) (Diff)
/intern/cycles/kernel/kernel_shader.h (+8, -3) (Diff)
/intern/cycles/kernel/kernel_textures.h (+1, -2) (Diff)
/intern/cycles/render/image.h (+1, -1) (Diff)
/intern/cycles/render/mesh.cpp (+16, -26) (Diff)
/intern/cycles/render/mesh.h (+2, -2) (Diff)
/intern/cycles/render/scene.h (+0, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021