TeamMidnightDust / MidnightControls

A Minecraft mod adding controller support and enhanced controls overall.
https://midnightdust.eu/midnightcontrols/
MIT License
174 stars 28 forks source link

Mismatched display refresh rate and internal fps with v-sync enabled causes stuttery camera movement #217

Closed PercyPanleo closed 9 months ago

PercyPanleo commented 1 year ago

Describe the bug When the display refresh rate doesn't match the max framerates setting while v-sync is enabled, camera movement becomes stuttery. This is an issue because I use this mod on my Steam Deck, where I have the refresh rate set to 30fps to increase battery life, and I set Minecraft to 60fps with v-sync enabled to make frametimes more consistent

To Reproduce Enable v-sync in video settings Set max framerate to anything other than the displays framerate Turn in any direction using a controller

Expected behavior Smooth camera movement that is properly synced to the framerate even when v-sync is enabled

Desktop (please complete the following information):