reduce CPU load in dot_draw