Ahh, I see. I misunderstood you on that one.

Maybe there needs something to be initialized or reset when draw_line/draw_quad is called for the first time in a frame. This could explain why subsequent calls of these functions are faster.