HostDisplay: Manually throttle fullscreen UI presentation

Fixes flickering screen in fullscreen with Vulkan.
This commit is contained in:
Connor McLaughlin
2022-12-04 14:05:57 +10:00
parent eafa4fb1a3
commit 7d3ac98cc6
19 changed files with 81 additions and 58 deletions

View File

@ -352,9 +352,9 @@ void Host::OnInputDeviceDisconnected(const std::string_view& identifier)
// noop
}
void* Host::GetTopLevelWindowHandle()
std::optional<WindowInfo> Host::GetTopLevelWindowInfo()
{
return nullptr;
return std::nullopt;
}
void Host::RefreshGameListAsync(bool invalidate_cache)

View File

@ -38,7 +38,7 @@ bool RegTestHostDisplay::HasSurface() const
return true;
}
bool RegTestHostDisplay::CreateDevice(const WindowInfo& wi)
bool RegTestHostDisplay::CreateDevice(const WindowInfo& wi, bool vsync)
{
m_window_info = wi;
return true;

View File

@ -15,7 +15,7 @@ public:
bool HasDevice() const override;
bool HasSurface() const override;
bool CreateDevice(const WindowInfo& wi) override;
bool CreateDevice(const WindowInfo& wi, bool vsync) override;
bool SetupDevice() override;
bool MakeCurrent() override;