Add debug define for timing polyfill
This commit is contained in:
parent
aec8f4f777
commit
09b0eadadd
Notes:
blender-bot
2023-02-14 10:33:05 +01:00
Referenced by issue #40471, Flame/density Cycles attribute are different from 3D display
Referenced by issue #40460, Blender 2.71 09b0ead
(official buildbot) no gpu rendering with Nvidia 337.25 drivers (lastest)
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue