mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
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:
parent
682dd1b22d
commit
e8d8dde283
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -173,7 +173,8 @@ void VkCommandBufferManager::WaitForCommands(bool finish, bool uploadOnly)
|
|||
|
||||
if (finish)
|
||||
{
|
||||
fb->FPSLimit();
|
||||
if (!fb->GetVSync())
|
||||
fb->FPSLimit();
|
||||
fb->GetFramebufferManager()->QueuePresent();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue