fixed handling of frame time (resulting in higher fps)