public static int SnapTimeToPhysicsFrame(int t) { int s = t + idR.UserCommandRate - 1; return (s - s % idR.UserCommandRate); } #endregion