mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-08 04:25:37 +00:00
GPUThread: Minor logic corrections
This commit is contained in:
parent
b1ce3bf0b1
commit
a0de2febad
@ -494,7 +494,7 @@ void GPUThread::Internal::DoRunIdle()
|
|||||||
if (!PresentFrameAndRestoreContext())
|
if (!PresentFrameAndRestoreContext())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!g_gpu_device->GetMainSwapChain()->IsVSyncModeBlocking())
|
if (g_gpu_device->HasMainSwapChain() && !g_gpu_device->GetMainSwapChain()->IsVSyncModeBlocking())
|
||||||
g_gpu_device->GetMainSwapChain()->ThrottlePresentation();
|
g_gpu_device->GetMainSwapChain()->ThrottlePresentation();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -548,7 +548,7 @@ void GPUThread::StopFullscreenUI()
|
|||||||
// Don't need to reconfigure if we already have a system.
|
// Don't need to reconfigure if we already have a system.
|
||||||
if (System::IsValid())
|
if (System::IsValid())
|
||||||
{
|
{
|
||||||
RunOnThread([]() { s_state.requested_fullscreen_ui = true; });
|
RunOnThread([]() { s_state.requested_fullscreen_ui = false; });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1050,7 +1050,7 @@ void MiniHost::CPUThreadMainLoop()
|
|||||||
|
|
||||||
void MiniHost::GPUThreadEntryPoint()
|
void MiniHost::GPUThreadEntryPoint()
|
||||||
{
|
{
|
||||||
Threading::SetNameOfCurrentThread("CPU Thread");
|
Threading::SetNameOfCurrentThread("GPU Thread");
|
||||||
GPUThread::Internal::GPUThreadEntryPoint();
|
GPUThread::Internal::GPUThreadEntryPoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user