Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualjHaskell

Posted 06 December 2012 - 07:22 AM

Instead of

[source lang="cpp"]while( accumulator >= UPDATE_TICKS )[/source]

try

[source lang="cpp"]while( accumulator >= 0 )[/source]

And change accumulator to a signed int. Then, for any left over accumulator, you're running one update frame into the future, at which point the interpolation makes more sense.

#1jHaskell

Posted 06 December 2012 - 07:22 AM

Instead of
[source lang="cpp"]while( accumulator >= UPDATE_TICKS )[/source]
try
[source lang="cpp"]while( accumulator >= 0 )[/source]
And change accumulator to a signed int. Then, for any left over accumulator, you're running one update frame into the future, at which point the interpolation makes more sense.

PARTNERS