3 ms·
That's basically a one-pole low pass filter. You can use this for smoothing any kind of data that arrives at a steady rate. You can also dynamically calculate
by spacechild1 6mo ago
That's basically a one-pole low pass filter. You can use this for smoothing any kind of data that arrives at a steady rate.
You can also dynamically calculate the filter coefficient based on the current delta time, which makes sure that the smoothing behavior is independent from the current framerate.
- mightyham 6mo agoThanks, I added a formula for a dynamic filter coefficient to my original comment. It makes sense intuitively to me, but I'm also not certain if the exact formula I provided is correct.