Support variable refresh rate display #11140

Open
opened 2026-01-31 02:39:40 +00:00 by claunia · 0 comments
Owner

Originally created by @dmex on GitHub (Oct 23, 2020).

The Windows Terminal is missing a flag required for variable refresh rate display support which ends up directly causing two additional bugs in the dx renderer.

7a75e508d6/src/renderer/dx/DxRenderer.cpp (L1331)

and here:
7a75e508d6/src/renderer/dx/DxRenderer.cpp (L1352)

Must to be changed from 1 to 0.

Those two changes are needed for fixing both #649 and #7147 and mentioned in the nvidia documentation:

image

Originally created by @dmex on GitHub (Oct 23, 2020). The Windows Terminal is missing a flag required for variable refresh rate display support which ends up directly causing two additional bugs in the dx renderer. * The first issue is the missing flags to enable support for variable refresh rate displays (for example 144hz monitors). This is documented on MSDN here (includes source code sample): https://docs.microsoft.com/en-us/windows/win32/direct3ddxgi/variable-refresh-rate-displays * The second issue is the terminal renderer passing 1 when calling Present() forcing vsync for the surfaces both here: https://github.com/microsoft/terminal/blob/7a75e508d6355e6a5994b8ef3aa5dca70fe7d4f1/src/renderer/dx/DxRenderer.cpp#L1331 and here: https://github.com/microsoft/terminal/blob/7a75e508d6355e6a5994b8ef3aa5dca70fe7d4f1/src/renderer/dx/DxRenderer.cpp#L1352 Must to be changed from 1 to 0. Those two changes are needed for fixing both #649 and #7147 and mentioned in the nvidia documentation: ![image](https://user-images.githubusercontent.com/1306177/96972495-4dbad400-1562-11eb-91f9-ec1b9f859c70.png)
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-Fix labels 2026-01-31 02:39:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11140