timeris only redrawing in debug mode