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

Fixup for multi-thread shader compilation (loading stage) #9762

Merged
merged 2 commits into from Feb 12, 2021
Merged

Fixup for multi-thread shader compilation (loading stage) #9762

merged 2 commits into from Feb 12, 2021

Conversation

SUPERCILEX
Copy link
Contributor

This offers a huge improvement in startup performance. With around 13,000 shaders we go from ~1:30 to under 10 seconds. It looks like this was the original intention of the author given the outer scope recompile variable.

This offers a huge improvement in startup performance. With around 13,000 shaders we go from ~1:30 to under 10 seconds. It looks like this was the original intention of the author given the outer scope recompile variable.

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
@MSuih MSuih requested a review from kd-11 February 12, 2021 06:55
@MSuih MSuih added the RSX label Feb 12, 2021
@kd-11
Copy link
Contributor

kd-11 commented Feb 12, 2021

The finding is true, it seems I introduced this bug when refactoring the shader compilers. It is not necessary to process the shader under the lock (facepalm). Somehow it was not noticed by users, but it may have also ben broken for a long time before that.

@kd-11 kd-11 changed the title Multi-thread shader compilation Fixup for multi-thread shader compilation (loading stage) Feb 12, 2021
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
@kd-11 kd-11 merged commit 48296c2 into RPCS3:master Feb 12, 2021
@SUPERCILEX SUPERCILEX deleted the fast-shader-preload branch February 12, 2021 11:45
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.

None yet

3 participants