Quantcast
Viewing all articles
Browse latest Browse all 40524

Recording mouse positions with high sample rate

You could interpolate the positions between the values you can actually record:

Let's say your app is running at 100fps - certainly doable if there isn't much happening graphically or otherwise - record the current mouse position and compare with the last recorded position, then LERP 4 positions in between.

cheers!


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>