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
commit 0b9c8efa58
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

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