Correlation between ViewportSize, Camera Sensitivity and vFOV

I’m writing some FPS system that takes a set of parameters that returns a number for MouseDeltaSensitivity. However the thing is, I have no idea how Roblox’s camera system works, and because it uses Vertical FoV, it’s even less understandable.

This question is better answered by players who play FPS games often, and are casually programmers.

So, from the following parameters:

  • Mouse DPI,
  • ViewportSize,
  • Roblox Camera Sensitivity,
  • Target sensitivity (unit being cm/360),

To return a number between 0 and 10, used in MouseDeltaSensitivity, what’s an appropriate formula?

For now, I’ve tried this in Desmos:

MDS = [(1/DPI) * (RBXCamSens * ViewportSizeX) * (10/DesiredSens)]

(My data for reference: 1000 DPI, 0.33 Camera sens, 1920 ViewportSizeX, 4cm/360 as desired sensitivity, and the number is quite close to my current setup)

Which seems to return 0-10, is this an appropriate way to calculate desired sens based on all those factors?

Again - the main question is, if ViewportSize affects the mouse/camera sens.

Yes, it does. Just change the test resolution in game to see the difference.