From 03bf290eae99a0026b39b6e8351bd0d0eed3bc7e Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Fri, 4 Oct 2019 10:14:49 +0200 Subject: 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. --- source/blender/gpencil_modifiers/intern/MOD_gpencilcolor.c | 1 - 1 file changed, 1 deletion(-) (limited to 'source/blender/gpencil_modifiers/intern/MOD_gpencilcolor.c') diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilcolor.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilcolor.c index cb429b874a2..cbe2d9a4c4f 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilcolor.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilcolor.c @@ -168,5 +168,4 @@ GpencilModifierTypeInfo modifierType_Gpencil_Color = { /* foreachObjectLink */ NULL, /* foreachIDLink */ NULL, /* foreachTexLink */ NULL, - /* getDuplicationFactor */ NULL, }; -- cgit v1.2.3