Created on 2017-04-03.14:39:43 by goobliata, last changed by goobliata.
do_modal and probably other loops will spin quickly if no timer events are in
the queue. This needlessly burns CPU, although should only be on the first loop
and shouldn't cause any other problems.