FullscreenUI: Fix slow fadeout on fast forward toggle

This commit is contained in:
Stenzek 2025-05-03 00:46:18 +10:00
parent 6cafb5cdea
commit ad13b17bea
No known key found for this signature in database
3 changed files with 6 additions and 1 deletions

View File

@ -245,7 +245,6 @@ static void DrawAboutWindow();
static void FixStateIfPaused();
static void GetStandardSelectionFooterText(SmallStringBase& dest, bool back_instead_of_cancel);
static bool CompileTransitionPipelines();
static void UpdateTransitionState();
//////////////////////////////////////////////////////////////////////////
// Backgrounds

View File

@ -47,6 +47,7 @@ void CloseLoadingScreen();
void SetTheme();
void UpdateRunIdleState();
void UpdateTransitionState();
static constexpr float SHORT_TRANSITION_TIME = 0.08f;
static constexpr float DEFAULT_TRANSITION_TIME = 0.15f;

View File

@ -1066,6 +1066,11 @@ bool GPUPresenter::PresentFrame(GPUPresenter* presenter, GPUBackend* backend, bo
}
}
}
else
{
// transitions still need to be updated otherwise the fade timer breaks
FullscreenUI::UpdateTransitionState();
}
GPUSwapChain* const swap_chain = g_gpu_device->GetMainSwapChain();
const GPUDevice::PresentResult pres = skip_present ?