[Feature] Option to override the display refresh rate

This adds a per-game graphics option, `DisplayRefreshRate`, to override the display refresh rate.

It defaults to 60 Hz, and is located in Dev tools.

Games using variable timesteps benefit from higher refresh rates.

Closes #19319
This commit is contained in:
Nabile Rahmani committed 2024-07-13 15:04:20 +02:00
1 parent 630cae9616
commit 7af15c73bc
8 files changed
+15 -7

No files matched your search

+2
View File
@@ -693,6 +693,8 @@ static const ConfigSetting graphicsSettings[] = {
ConfigSetting("UberShaderVertex", &g_Config.bUberShaderVertex, true, CfgFlag::DEFAULT),
ConfigSetting("UberShaderFragment", &g_Config.bUberShaderFragment, true, CfgFlag::DEFAULT),
ConfigSetting("DisplayRefreshRate", &g_Config.iDisplayRefreshRate, 60, CfgFlag::PER_GAME),
};
static const ConfigSetting soundSettings[] = {