fix smooth framerate cap + elude double unprecision