micro optimising drawLines due to profiler