Pixel art smooth scrolling how?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
pgimeno
Party member
Posts: 3686
Joined: Sun Oct 18, 2015 2:58 pm

Re: Pixel art smooth scrolling how?

Post by pgimeno »

zorg wrote: Wed Jul 27, 2022 2:38 pm Indeed, box2d, as far as i remember, does expect fixed timestep updates.
That's new to me.
User avatar
marclurr
Party member
Posts: 159
Joined: Fri Apr 22, 2022 9:25 am

Re: Pixel art smooth scrolling how?

Post by marclurr »

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
MrFariator
Party member
Posts: 563
Joined: Wed Oct 05, 2016 11:53 am

Re: Pixel art smooth scrolling how?

Post by MrFariator »

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.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests