I am polling for input every frame from my application using SDL_PollEvent. When I recieve a mouse motion event I set the relative mouse position
// Other input code
PlayerInput->RelMousePos.x = (f32)SdlEvent->motion.xrel;
PlayerInput->RelMousePos.y = (f32)SdlEvent->motion.yrel;
// Other input code
In my game loop I handle the input like so
f32 MouseXRatio = PlayerInput->RelMousePos.x / GameState->CurrentResolution.Width;
f32 MouseYRatio = PlayerInput->RelMousePos.y / GameState->CurrentResolution.Height;
f32 Units = 64.0f;
v3 Amount = v3(-MouseYRatio, MouseXRatio, 0.0f) * Units;
GameState->CameraRot += Amount;
// Rotate the view matrix
The camera rotates fine, feels good to move, etc. However, when I turn on vsync the sensitivity of the camera goes down. I am a little stuck on how to handle this.