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

performance: Use fence to sync GPU/CPU when using D3D12 #924

Merged
merged 5 commits into from Jun 21, 2023

Conversation

karasusan
Copy link
Collaborator

@karasusan karasusan commented Jun 13, 2023

Related this PR.
#923

This PR fixes the native code of DX12 graphic device to improve performance of the rendering thread. I profiled the loads of the rendering thread, and compared two results. This comparison can show the performance improvement that reduces the loads of waiting time for command buffer to copy texture.

Before
image

After
profile-ssao-dx12

We will deal with other graphics device Metal and GLCore near future.

(cherry picked from commit 842f4d8)
(cherry picked from commit dafcdb8)
@karasusan karasusan changed the title Performance/dx12 performance: Use fence to sync GPU/CPU when using D3D12 Jun 13, 2023
@karasusan karasusan marked this pull request as ready for review June 20, 2023 09:45
@karasusan karasusan merged commit cd58713 into main Jun 21, 2023
61 checks passed
@karasusan karasusan deleted the performance/dx12 branch June 21, 2023 05:00
@karasusan karasusan restored the performance/dx12 branch July 6, 2023 06:55
@karasusan karasusan deleted the performance/dx12 branch July 6, 2023 13:53
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.

None yet

2 participants