Make flushing more lazy in the draw module.