Get the latest tech news

Fixing the iterative damping interpolation in video games


As I'm exploring the fantastic world of indie game development lately, I end up watching a large number of video tutorials on the subject. Even though the quality of the content is pretty variable, I'm very grateful to the creators for it.

The usual warning: I don't have a mathematics or academic background, so the article is addressed at other neanderthals like myself, who managed to understand that pressing keys on a keyboard make pixels turn on and off. But here we are re-using the previous value, so this essentially means nesting lerp() function calls, which expands into a power formula, forming a curve composed of a chain of small straight segments. We may be able to get away with this by forcing a constant refresh rate for the game and consider this a non-issue (I'm not convinced this is achievable on all engines and platforms), but then we meet another problem: the device may not be able to hold this requirement at all times because of potential lags (for reasons that may be outside our control).

Get the Android app

Or read this on Hacker News

Read more on:

Photo of video games

video games

Related news:

News photo

61% of Americans, or 190.6M people, play video games | ESA

News photo

Optimising the Fun Out of Video Games (2018)

News photo

Kids Hooked on Video Games Prompt a Flurry of Lawsuits