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: Experimental fix for self-dependency barriers during render pass. (performance testing needed) #431

Merged
merged 3 commits into from
Nov 2, 2022

Conversation

goeiecool9999
Copy link
Contributor

@goeiecool9999 goeiecool9999 commented Oct 29, 2022

This change ends the current render pass when cemu detects a self-dependency within it. This fixes #267.
However the performance implications of separating the draw calls into multiple render passes and the broader barriers are unknown.
My test in breath of the wild showed an acceptable reduction in worst %.1 framerate from 69.7fps to 56.3fps. with 97th percentile being down only 2 fps from 102 to 100. (Bad testing methodology)
Different GPUs/OS's/drivers may get different outcomes so this change requires performance testing.
Accurate barriers must be enabled for this to work

@Exzap
Copy link
Contributor

Exzap commented Nov 2, 2022

Performance seems unchanged on Windows Nvidia and Intel Xe drivers, at least nothing that would be discernible beyond random noise. If the impact is this low on three completely different implementations then this should be safe to merge, at least performance-wise.

@Exzap Exzap merged commit a129d22 into cemu-project:main Nov 2, 2022
@goeiecool9999 goeiecool9999 deleted the selfrefpassbarrierfix branch November 4, 2022 18:34
goeiecool9999 added a commit to goeiecool9999/Cemu that referenced this pull request Nov 10, 2022
lijunyu-cn added a commit to lijunyu-cn/Cemu that referenced this pull request Sep 29, 2023
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.

[Linux] [Radv vulkan driver] [BOTW] Tall grass like graphical bugs
2 participants