Blender Git Loki

Git Commits -> Revision 03bf290

Revision 03bf290 by Antonio Vazquez (master)
October 4, 2019, 08:20 (GMT)
GPencil: Reduce VBO memory footprint when using modifiers

Before, the modifiers were evaluated in Draw Engine and this required to calculate a factor to increase the VBO size.

Now, the modifiers are evaluated in Depsgraph and the Draw Engine receives the evaluated stroke with the final number of vertices. As the number of vertices is the final value already, if Draw Manager increases the number with the modifiers only increases the memory with empty space because never would be used. This commit removes this double calculation, reducing the memory usage and removes a loop to calculate the size by modifier too.

Also, the function getDuplicationFactor() has been removed because is not required anymore.

Commit Details:

Full Hash: 03bf290eae99a0026b39b6e8351bd0d0eed3bc7e
Parent Commit: fbc096c
Lines Changed: +0, -71

18 Modified Paths:

/source/blender/blenkernel/BKE_gpencil_modifier.h (+0, -6) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_utils.c (+0, -18) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c (+0, -1) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilarray.c (+0, -9) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c (+0, -1) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilcolor.c (+0, -1) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilhook.c (+0, -1) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencillattice.c (+0, -1) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c (+0, -16) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c (+0, -1) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpenciloffset.c (+0, -1) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilopacity.c (+0, -1) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilsimplify.c (+0, -1) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c (+0, -1) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilsubdiv.c (+0, -9) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c (+0, -1) (Diff)
/source/blender/gpencil_modifiers/intern/mod_gpenciltime.c (+0, -1) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c (+0, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021