multithreading

one thread for drawing, one for inserting