Changed framerate to double to mitigate floating point drift. Don't think it worked.