Skip to content

Commit

Permalink
Remove Interpolation Delay update from FixedUpdate
Browse files Browse the repository at this point in the history
Possibly gets called multiple times per frame; could be screwing with the numbers possibly.
  • Loading branch information
Johnathon Selstad committed Sep 20, 2016
1 parent 3db654b commit 002f089
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Assets/LeapMotion/Scripts/LeapServiceProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,6 @@ protected virtual void FixedUpdate() {
Int64 time = leap_controller_.Now() - (_interpolationDelay+16) * 1000;
leap_controller_.GetInterpolatedFrame(_untransformedFixedFrame, time);
#else
_smoothedTrackingLatency.value = Mathf.Min(_smoothedTrackingLatency.value, 25000f);
_smoothedTrackingLatency.Update((float)(leap_controller_.Now() - leap_controller_.FrameTimestamp()), Time.deltaTime);
leap_controller_.GetInterpolatedFrame(_untransformedFixedFrame, leap_controller_.Now() - (long)_smoothedTrackingLatency.value - (_interpolationDelay * 1000));
#endif
} else {
Expand Down

0 comments on commit 002f089

Please sign in to comment.