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

When rendering image, letting window minimum will cause app throw exception. #5

Open
water-chika opened this issue Apr 29, 2024 · 2 comments

Comments

@water-chika
Copy link
Contributor

After window is minimized, vkPresent will throw OutOfDate exception because swapchain does not match window size.

@TwentyFiveSoftware
Copy link
Owner

Doesn't #4 solve this issue as well? For me, #4 solves any vulkan erros occuring on window resize and also on window minimization.

@water-chika
Copy link
Contributor Author

#4 doesn't solve this issue.
It seems that app run well on AMD's card, but on my laptop with NVidia card, it will return out of date error result.
vkPresent will detect if window size is same with swapchain size,
if not, it will return suboptimal or out of update. suboptimal is a present success but not optimal, out of date is an error result notifying app that swapchain is out of date.
When app is minimized, on some cards, vkPresent will return out of date because window's size is 0x0. I have tried to create swapchain and related resources when vkPresent return out of date, but swapchain does not accept size 0x0. Also, I think that the app doesn't need to present when window size is 0x0.

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

No branches or pull requests

2 participants