setupFrame

Evaluates the pacing state for the upcoming frame; call it first thing in the VSYNC callback.