fixed frame rate counter stuff