diff options
author | Jagannadhan Ravi <easythrees> | 2021-04-23 11:06:46 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-04-23 11:07:06 +0300 |
commit | 425e19bc1fca91116d5fceb7e994bdbf7656acc2 (patch) | |
tree | f3304a68874395cb8b3cb1d6517c6769117f799b /source/blender/blenlib | |
parent | cfa20ff03bdeb87b1625196d58a1dbe0e22cc2f9 (diff) |
Modifiers: Performance Simple Deformation
Use multiprocessing with simple deform modifiers.
Master 2.92 fps this patch 3.13 fps on Ryzen 1700X With Vega 64 GPU.
3970X: 2.85 fps -> 2.95 fps
3990X: 3.15 fps -> 3.41 fps
3995WX: 3.21 fps -> 3.38 fps
Reviewed By: jbakker
Differential Revision: https://developer.blender.org/D10609
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_compiler_attrs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_compiler_attrs.h b/source/blender/blenlib/BLI_compiler_attrs.h index 680c4bc78da..4b5a7d671f2 100644 --- a/source/blender/blenlib/BLI_compiler_attrs.h +++ b/source/blender/blenlib/BLI_compiler_attrs.h @@ -98,3 +98,10 @@ #else # define ATTR_ALIGN(x) __attribute__((aligned(x))) #endif + +/* Alignment directive */ +#ifdef _WIN64 +# define ALIGN_STRUCT __declspec(align(64)) +#else +# define ALIGN_STRUCT +#endif |