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

Remove the vertex cache option #18339

Merged
merged 3 commits into from
Oct 11, 2023
Merged

Remove the vertex cache option #18339

merged 3 commits into from
Oct 11, 2023

Conversation

hrydgard
Copy link
Owner

@hrydgard hrydgard commented Oct 10, 2023

After the latest round of optimizations, which is now coming to a close, I can no longer measure a meaningful frame rate improvement ( > 1%) by using the vertex cache. I had hoped to reach this point, and I'm happy I did.

Since ~all it now does is to complicate the code, let's finally get rid of it.

Although, @unknownbrackets , might want to check if it still has a benefit on RISC-V, which doesn't do very well at vertex decoding?

@hrydgard hrydgard added GE emulation Backend-independent GPU issues Code Cleanup Cleanup to make future work easier. Needs to be done sometimes. labels Oct 10, 2023
@hrydgard hrydgard added this to the v1.17.0 milestone Oct 10, 2023
Copy link
Collaborator

@unknownbrackets unknownbrackets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me. I didn't try again on RISC-V but archanox reported it didn't help all that much there anymore either, which doesn't surprise me.

At least on the device I have, most problems are what you'd expect: anything that you'd say "oh, I should vectorize this with SIMD" or "oh this might be using a lot of memory bandwidth" -> those things will be slow. Verts fit that bill for sure, but hashing them is probably not cheap either.

-[Unknown]

@hrydgard hrydgard merged commit bdff933 into master Oct 11, 2023
18 checks passed
@hrydgard hrydgard deleted the delete-vertex-cache branch October 11, 2023 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Cleanup Cleanup to make future work easier. Needs to be done sometimes. GE emulation Backend-independent GPU issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants