Skip to content

Add VSync and Max Framerate options#1077

Open
Kamenkovic wants to merge 4 commits intosmartcmd:mainfrom
Kamenkovic:main
Open

Add VSync and Max Framerate options#1077
Kamenkovic wants to merge 4 commits intosmartcmd:mainfrom
Kamenkovic:main

Conversation

@Kamenkovic
Copy link

@Kamenkovic Kamenkovic commented Mar 9, 2026

Description

Adds a Max Framerate(Fps Cap) and VSync options.

Changes

Previous Behavior

There wasn't a Max Framerate or VSync option, and VSync was always turned on.

Root Cause

Though the graphics menu was lacking options.
Also encountered an issue where running in fullscreen with VSync on caused FPS to drop from ~1000 to 20-30, making the game unplayable (But i havent seen anyone else have the same issue). So that why i added VSync option.

Showcase.mp4

New Behavior

Now there are Max Framerate and VSync options in graphics menu, VSync option is a tick box and Max Framerate is a slider(options are 30-60-120-Unlimited).

Fix Implementation

Windows64_Minecraft.cpp now tracks frame time with QueryPerformanceCounter. It sleeps until the next frame is due, based on the selected FPS cap. The sync interval given to g_pSwapChain->Present is now controlled by the VSync setting.

AI Use Disclosure

Used for finding problems in the output.

Related Issues

@Kamenkovic Kamenkovic changed the title Add VSyn and Max Framarate options Add VSync and Max Framerate options Mar 10, 2026
@eh-K
Copy link
Contributor

eh-K commented Mar 10, 2026

All options work as intended but the DLC Worlds are missing when I apply your changes.

Do they still appear for anyone else?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants