How to implement low pass filter using java

I have a page describing a very simple, very low-CPU low-pass filter that is also able to be framerate-independent. I use it for smoothing out user input and also for graphing frame rates often. http://phrogz.net/js/framerate-independent-low-pass-filter.html In short, in your update loop: // If you have a fixed frame rate smoothedValue += (newValue – smoothedValue) / … Read more