Mouse Poll Rate Induced Game Stuttering

 

In QFIELD we wanted to bring our audience the smoothest experience possible, and we did spend a sizeable chunk of time optimizing and perfecting frame pacing of the game. This is especially important given how widespread monitors with high refresh rate are becoming. There were a lot of things we tackled during this process and I’m going to cover them in future posts, but let’s take a look at one specifically interesting and that’s perceived image stutter caused by misalignment between mouse poll rate and game update frequency. Be sure to checkout the comparison videos at the bottom to see that this issue is worth tackling.

Technology like Nvidia G-Sync take care of synchronizing refresh rate of the monitor with the update frequency of your game. In case your game is running at a frame rate that is in the refresh rate range of your monitor you don’t get any image tearing. With mouse input the situation is different, there is no “M-Sync”, and the position delta updates arrive to your application at a frequency given by the mouse.

Let’s dive straight into an example. Say you have a mouse with update frequency of 100Hz. If your game is smoothly running at 50 or 100 FPS everything is alright as on average, you get 2 respectively 1 mouse position update per frame resulting in smooth motion on screen considering you are moving mouse smoothly across the table. Now once your game starts running anywhere between 50 and 100 FPS it gets misaligned with the mouse poll rate and you start feeling a strong stutter as there will be a lot of frames with varying number of mouse position updates.

The higher the poll rate of the mouse the less of a problem this becomes. Unfortunately a lot of players out there still have the “standard” 125Hz mouse and high poll rate mouse can introduce heavy stalls in input processing (more on that in the future). This is a serious problem for us and in some cases we would judge the game unplayable just based on this issue alone.

In QFIELD, we implemented an adaptive mouse smoothing strategy to fight this issue. It’s adaptive as it takes into account the frame rate the game is running at, the frequency of your monitor and the poll rate of your mouse. The solution we settled on provides players with stutter free experience while not fiddling with their mouse input unnecessarily. We realize that this solution is not feasible for every single game out there and that some players might prefer raw mouse input, so we of course allow toggling this feature off through the menu. That said, it has been ON by default since launch and QFIELD is being praised for its smoothness.

This is a simple problem, yet I really didn’t find much on the topic around the internet. Even Doom Eternal suffers from these issues and they don’t seem to provide any kind of adaptive smoothing solution for mouse input. Let me know if you want to know more details regarding our solution. I’m happy to share them.

 

 Stutter with Adaptive Smoothing DISABLED


No stutter with Adaptive Smoothing ENABLED



Comments