Skip to content

Commit

Permalink
[Android]Do not return bogus refresh rate if Swappy is found to be buggy
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Apr 15, 2024
1 parent cea0d20 commit f26a087
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,11 @@ namespace Ogre
void VulkanAndroidWindow::initSwappy()
{
if( !mDevice->mRenderSystem->getSwappyFramePacing() )
{
mFrequencyNumerator = 0u;
mFrequencyDenominator = 0u;
return;
}

if( !mJniProvider )
{
Expand Down

0 comments on commit f26a087

Please sign in to comment.