That's new to me.
Pixel art smooth scrolling how?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Pixel art smooth scrolling how?
Re: Pixel art smooth scrolling how?
Seems I may have been wrong, Box2D doesn't implement a fixed timestep update internally.
In case anyone is interested, I did find another interesting site which shows an example implementation of a fixed update with interpolation to handle the remaining time in the accumulator. In my head the interpolation step was much more complicated than this. https://www.unagames.com/blog/daniele/2 ... tion-box2d
In case anyone is interested, I did find another interesting site which shows an example implementation of a fixed update with interpolation to handle the remaining time in the accumulator. In my head the interpolation step was much more complicated than this. https://www.unagames.com/blog/daniele/2 ... tion-box2d
-
- Party member
- Posts: 563
- Joined: Wed Oct 05, 2016 11:53 am
Re: Pixel art smooth scrolling how?
Re: Box2d and fixed timestep.
As far as I know, Box2d doesn't necessarily expect fixed timestep. Rather, it's just the various ways in which physics may start to feel inconsistent, harder to debug, or any other number of other things if the delta between updates fluctuates a bunch, or even worse, has huge spikes. As such, the often spread conventional wisdom is to update physics with fixed steps, potentially with some additional considerations if physics steps themselves start to take a bunch of time.
As far as I know, Box2d doesn't necessarily expect fixed timestep. Rather, it's just the various ways in which physics may start to feel inconsistent, harder to debug, or any other number of other things if the delta between updates fluctuates a bunch, or even worse, has huge spikes. As such, the often spread conventional wisdom is to update physics with fixed steps, potentially with some additional considerations if physics steps themselves start to take a bunch of time.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests