Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulkan: Some surface code cleanup #13164

Merged
merged 6 commits into from
Jul 18, 2020
Merged

Vulkan: Some surface code cleanup #13164

merged 6 commits into from
Jul 18, 2020

Conversation

hrydgard
Copy link
Owner

@hrydgard hrydgard commented Jul 18, 2020

Replaces #13041 . Did it somewhat differently, now works flawlessly on Linux for some reason, even when not recreating the surface on resize. Doesn't yet use oldSwapchain though, which will be required for switching vsync mode without stalling the GPU in the future.

Also enables the VSync setting on more platforms. There's more work to be done there though.

Shortens some logging, too.

The end goal of this stuff is better control over the swapchain, including seamless switches between vsync and not, for better unthrottle when vsynced, this is just a step on the way there though.

Also (accidentally, but decided to go with it) includes the fix for the issue @Anuskuss found with Vulkan and vsync and unthrottling.

@hrydgard hrydgard merged commit f12fba7 into master Jul 18, 2020
@hrydgard hrydgard deleted the vulkan-surface-cleanup branch July 18, 2020 20:59
@@ -350,13 +350,14 @@ void GameSettingsScreen::CreateViews() {
}
#endif

#ifdef _WIN32
#if !PPSSPP_PLATFORM(ANDROID)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's Vulkan only though, right? Worried this may cause confusion for people on OpenGL, i.e. Raspberry pi, etc.

-[Unknown]

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fully aware of this - which I will fix in a followup by simply adding support for toggling VSync on these platforms too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants