compute frame time before syncing to avoid div-by-zero in first frame

(0) -100 -30 -10 -1 +1 +10 tip

mercurial