benkyoujouzu / mousesniff

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MouseSniff

MouseSniff is a mouse test tool.

Smooth Mouse Rawinput by FPS

It is common to see performance fluctuation in the mouse rawinput obtained from the operating system API. The fluctuation may comes from the mouse, the operating system, the wireless transmission, or all of them.

inconsistency

However, the frame rates of games are usually much lower than the mouse polling rate. Thus, the inconsistency of mouse performance may be smoothed out when we sum up all the mouse input in a frame. The smoothed data in MouseSniff is the sum of all the mouse input in the time of one frame (1000 / SmoothFPS ms), which may better reflect the performance of the mouse in practical game scenarios.

The example below shows that the performance fluctuation of a series of mouse input may be completely smoothed out in 60 fps, but not in 360 fps.

60fps 360fps

Data Description

  • dx and dy are the mouse input obtained from the GetRawInputData API (by modifying rawinput-rust).
  • x and y are sums of dx and dy since log started.
  • dt is the time between two input data.
  • vx = dx / dt, vy = dy / dt.

About


Languages

Language:TypeScript 57.7%Language:Rust 34.3%Language:CSS 6.2%Language:HTML 1.8%