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: Improve post-shutdown cleanup and minor improvements #1401

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

goeiecool9999
Copy link
Collaborator

@goeiecool9999 goeiecool9999 commented Nov 4, 2024

With this PR it is possible to use the debug "Stop emulation" button or close cemu without the validation layer complaining about resources that haven't been cleaned up.

It also fixes some other minor validation errors
It also changes the flags for BeginCommandBuffer from VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT to VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT. Cemu only submits every recorded command buffer once and this might allow drivers to manage them more efficiently.

@Exzap
Copy link
Member

Exzap commented Dec 16, 2024

FYI I replicated some of your changes in b53b223 in regards to VKRObjectSampler
On a side note, I think you could have committed most of these changes directly instead of piling them up into a draft PR but either way this LGTM so far

# Conflicts:
#	src/Cafe/HW/Latte/Renderer/RendererOuputShader.cpp
#	src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRendererCore.cpp
@goeiecool9999 goeiecool9999 marked this pull request as ready for review December 16, 2024 13:35
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

Successfully merging this pull request may close these issues.

2 participants