diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-22 07:25:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-22 07:25:53 +0400 |
commit | a4b27831693eed988bcdf957bbe9ad7609e7bdf7 (patch) | |
tree | 3494d520b807cf40ebfc32650b67e32e5287f723 /source/blender/modifiers/intern/MOD_decimate.c | |
parent | 226a5ee83446f91cfeccc73912de85e89fe2169f (diff) |
small optimization for BLI_heap(), give some speedup in decimeter.
- use unsigned ints only (where mixing signed/unsigned)
- turn heap_swap into an inline function, add SWAP_TVAL macro to swap values using a temp value as storage.
- added type checking SHIFT3/4 macros
also style cleanup for CTR_Map
Diffstat (limited to 'source/blender/modifiers/intern/MOD_decimate.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_decimate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_decimate.c b/source/blender/modifiers/intern/MOD_decimate.c index 7bcf56a1bfc..d55bc7ab9b1 100644 --- a/source/blender/modifiers/intern/MOD_decimate.c +++ b/source/blender/modifiers/intern/MOD_decimate.c @@ -49,6 +49,8 @@ #include "BKE_tessmesh.h" #include "bmesh.h" +// #define USE_TIMEIT + #ifdef USE_TIMEIT # include "PIL_time.h" #endif |