A while ago I made a spreadsheet to document and compare what sensitivity speedrunners used (which has since been replaced by a newer, better spreadsheet by jude). I ran into some difficulties early on though since minecraft sensitivity doesn’t work like most games. A sens of 0.2 is not twice as fast 0.1. I’ve explained this many times on stream and in dms but figured this would be a good place to write down a full explanation.
First, you have to consider mouse DPI. DPI stands for dots per inch, and is literally just how many pixels the cursor moves per inch of mouse movement (before any operating system scaling). So if you move a mouse at 1000 DPI one inch to the left, the cursor will move 1000 pixels to the left on screen.
First person games need to take this cursor movement in pixels and convert it to a rotation. Most games will simply multiply the pixel movement by a constant value called “yaw”, then multiply that by the sensitivity option. Source games like CS for example use a yaw value 0.022, so if you play at 1000 DPI with a sens of 1, in one inch of mouse movement you rotate 22 degrees (1000 * 0.022 * 1), which comes out to about 16 inches per 360 degrees (360 / 22), or about 41cm/360 (16 * 2.54).
Minecraft, of course, does not have a yaw value, at least not a simple constant. Here is the relevant, very simplified code:
f = mouseSensitivity * 0.6 + 0.2;
g = f * f * f * 8.0;
x = g * 0.15;
y = g * 0.15;
Even more simplified:
For example, at 1000 DPI and a sensitivity of 0.1, the player would rotate about 21 degrees per inch, or about 17 inches or 43cm/360.
This complexity makes it ineffective to communicate what sensitivity you use by just using the raw values. This is the issue I wanted to solve with the spreadsheet. Intuitively you may expect 1000 DPI 0.2 sens to be the same as 500 DPI 0.4 sens (like in most FPS games), but in minecraft the first is 23cm/360 and the second is 18cm/360.
There is a lot more to sens as a whole topic, but this is the underlying calculation that turns mouse movement into in-game rotation.