Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-10-22 07:25:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-22 07:25:53 +0400
commita4b27831693eed988bcdf957bbe9ad7609e7bdf7 (patch)
tree3494d520b807cf40ebfc32650b67e32e5287f723 /source/blender/modifiers
parent226a5ee83446f91cfeccc73912de85e89fe2169f (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')
-rw-r--r--source/blender/modifiers/intern/MOD_decimate.c2
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