diff options
Diffstat (limited to 'source/blender/gpencil_modifiers/intern')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c index 5c529a7f6b6..aae439c62a2 100644 --- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c +++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c @@ -4145,6 +4145,11 @@ static void lineart_main_add_triangles(LineartRenderBuffer *rb) int x1, x2, y1, y2; int r, co; + double t_start; + if (G.debug_value == 4000) { + t_start = PIL_check_seconds_timer(); + } + LISTBASE_FOREACH (LineartElementLinkNode *, eln, &rb->triangle_buffer_pointers) { tri = eln->pointer; lim = eln->element_count; @@ -4169,6 +4174,11 @@ static void lineart_main_add_triangles(LineartRenderBuffer *rb) tri = (void *)(((uchar *)tri) + rb->triangle_size); } } + + if (G.debug_value == 4000) { + double t_elapsed = PIL_check_seconds_timer() - t_start; + printf("Line art intersection time: %f\n", t_elapsed); + } } /** |