Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,9 @@ void Game::UpdateDxgiRefreshRatesInfo()
&closestLargerPresentDuration));
m_minDuration = closestLargerPresentDuration;

if (m_minDuration == 0 && m_displayFrequency != 0) // if CheckPresentDurationSupport fails to set m_minDuration, try to set with m_displayFrequency instead
m_minDuration = (10000000)/m_displayFrequency;

// this may need to be adjusted based on the VESA criteria. TODO
if (m_minDuration > 0 && m_maxDuration > 0) // if Durations are supported,
{
Expand Down