pub unsafe extern "C" fn LeapUpdateRebase(
    hClockRebaser: LEAP_CLOCK_REBASER,
    userClock: i64,
    leapClock: i64
) -> eLeapRS
Expand description

\ingroup Functions Updates the relationship between the Ultraleap Tracking Service clock and the user clock.

When using LeapInterpolateFrame(), call this function for every graphics frame rendered by your application. The function should be called as close to the actual point of rendering as possible.

The relationship between the application clock and the Ultraleap Tracking Service clock is neither fixed nor stable. Simulation restarts can cause user clock values to change instantaneously. Certain systems simulate slow motion, or respond to heavy load, by reducing the tick rate of the user clock. As a result, the LeapUpdateRebase() function must be called for every rendered frame.

@param hClockRebaser The handle to a rebaser object created by LeapCreateClockRebaser(). @param userClock A clock value supplied by the application, sampled at about the same time as LeapGetNow() was sampled. @param leapClock The Ultraleap Tracking Service clock value sampled by a call to LeapGetNow(). @returns The operation result code, a member of the eLeapRS enumeration. @since 3.1.2