sleep for 10ms before checking if the frame changed again