mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-06 03:25:36 +00:00
FullscreenUI: Fix slow fadeout on fast forward toggle
This commit is contained in:
parent
6cafb5cdea
commit
ad13b17bea
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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 ?
|
||||
|
Loading…
x
Reference in New Issue
Block a user