Ignore vid_maxfps when vsync is enabled.

Increase vid_maxfps to 500 as modern computers have monitors in the 240-500 hz range now.
This commit is contained in:
Magnus Norddahl 2024-03-28 07:30:09 +01:00 committed by Rachael Alexanderson
parent 682dd1b22d
commit e8d8dde283
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0
2 changed files with 3 additions and 2 deletions

View file

@ -81,7 +81,7 @@ CUSTOM_CVAR(Int, gl_pipeline_depth, 0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_N
Printf("Changing the pipeline depth requires a restart for " GAMENAME ".\n");
}
CUSTOM_CVAR(Int, vid_maxfps, 200, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
CUSTOM_CVAR(Int, vid_maxfps, 500, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
{
if (self < GameTicRate && self != 0)
{

View file

@ -173,6 +173,7 @@ void VkCommandBufferManager::WaitForCommands(bool finish, bool uploadOnly)
if (finish)
{
if (!fb->GetVSync())
fb->FPSLimit();
fb->GetFramebufferManager()->QueuePresent();
}