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

SDL/Vulkan window resize improvements #11451

Merged
merged 1 commit into from
Feb 23, 2019
Merged

Conversation

hrydgard
Copy link
Owner

@hrydgard hrydgard commented Oct 7, 2018

Starting to work, but I think there's some sync issue left as it's not completely stable.

More stable now, for whatever reason.

Mostly fixes #11014

@hrydgard hrydgard added the Vulkan label Oct 7, 2018
@hrydgard hrydgard added this to the v1.7.0 milestone Oct 7, 2018
@hrydgard hrydgard changed the title SDL window resize improvements SDL/Vulkan window resize improvements Oct 7, 2018
@unknownbrackets
Copy link
Collaborator

What I'd seen before when someone else tried this, was that resizing up consistently worked, but resizing down usually crashed.

Gonna requeue Travis.

-[Unknown]

@@ -169,7 +169,7 @@ void Combo_keyScreen::onFinish(DialogResult result) {
g_Config.iCombokey4 = arrayToInt(array);
break;
}
g_Config.Save();
g_Config.Save("Combo_keyScreen::onFInish");
Copy link
Collaborator

Choose a reason for hiding this comment

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

*onFinish

-[Unknown]

int height = 768;
// We now get the size from the Vk surface, can safely pass in nonsense.
int width = -1;
int height = -1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can't we just use pixel_xres and pixel_yres (which would've been set before this call)?

-[Unknown]

@unknownbrackets
Copy link
Collaborator

Missed some config saves on Windows.

-[Unknown]

@mrcmunir
Copy link
Contributor

I tested it on ANV Intel driver is working window mode resize except the maximize button can't rezize display correct on rendering games.

captura de 2018-10-12 10-15-32

captura de 2018-10-12 10-19-26

This is not affected the UI PPSSPP

@hrydgard
Copy link
Owner Author

Moving to 1.8.0, no point in blocking 1.7.0 since we don't do official Linux releases.

@unknownbrackets
Copy link
Collaborator

I think we should at least merge in 8261e6f and f1dbef0. Not sure if the other resize improvements have made the rest of this work.

Although my comment on the latter now: perhaps it makes more sense to show it everywhere now, or at least everywhere but UWP. It does mean we show it on iOS, but we may eventually get Metal/MoltenVK there. I don't think it's that misleading/confusing to show the backend even if it's the only one.

-[Unknown]

@hrydgard
Copy link
Owner Author

Rebased on master. Not sure if it's drivers or the improved handling of swapchain size in VulkanContext, but it seems stable enough to be usable now.

@unknownbrackets unknownbrackets merged commit 6c9ee0e into master Feb 23, 2019
@mrcmunir
Copy link
Contributor

Fullscren mode Working fine but in Windows mode the resize screen random size wrong (Only in game not affected by UI).
image

image

image

In spite of that it is completely stable now :)

@hrydgard hrydgard deleted the linux-vulkan-work branch August 23, 2019 15:24
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.

[Vulkan] Resizing the window freezes the UI (SDL, Linux)
3 participants