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>2014-05-31 15:37:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-05-31 15:37:51 +0400
commit09b0eadaddf456cc35c9d6afc068a1f09b34841b (patch)
tree67c27697ebcf702159580dd072abeabbfc155fda /source/blender/blenlib/intern/polyfill2d.c
parentaec8f4f77722284def1936711fb5f40b4ddee656 (diff)
Add debug define for timing polyfill
Diffstat (limited to 'source/blender/blenlib/intern/polyfill2d.c')
-rw-r--r--source/blender/blenlib/intern/polyfill2d.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/polyfill2d.c b/source/blender/blenlib/intern/polyfill2d.c
index 629c9ea6de6..fbe3c31dbc6 100644
--- a/source/blender/blenlib/intern/polyfill2d.c
+++ b/source/blender/blenlib/intern/polyfill2d.c
@@ -55,6 +55,12 @@
#define USE_CONVEX_SKIP
// #define USE_CONVEX_SKIP_TEST
+// #define DEBUG_TIME
+#ifdef DEBUG_TIME
+# include "PIL_time_utildefines.h"
+#endif
+
+
typedef signed char eSign;
enum {
CONCAVE = -1,
@@ -392,6 +398,10 @@ void BLI_polyfill_calc_ex(
unsigned int i;
+#ifdef DEBUG_TIME
+ TIMEIT_START(polyfill2d);
+#endif
+
/* assign all polyfill members here */
pf.indices = r_indices;
pf.coords = coords;
@@ -428,6 +438,10 @@ void BLI_polyfill_calc_ex(
}
pf_triangulate(&pf);
+
+#ifdef DEBUG_TIME
+ TIMEIT_END(polyfill2d);
+#endif
}
void BLI_polyfill_calc_arena(