Commit: 09b0eadaddf456cc35c9d6afc068a1f09b34841b
Author: Campbell Barton
Date:   Sat May 31 21:37:51 2014 +1000
https://developer.blender.org/rB09b0eadaddf456cc35c9d6afc068a1f09b34841b

Add debug define for timing polyfill

===================================================================

M       source/blender/blenlib/intern/polyfill2d.c

===================================================================

diff --git a/source/blender/blenlib/intern/polyfill2d.c 
b/source/blender/blenlib/intern/polyfill2d.c
index 629c9ea..fbe3c31 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(

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to