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

softgpu: Cache reused indexed verts #16085

Merged
merged 3 commits into from
Sep 23, 2022

Conversation

unknownbrackets
Copy link
Collaborator

This reduces the cost of ReadVertex() some, which can be especially heavy with curves. Improves the FPS of a frame dump from Metal Gear Ac!D 2 from ~30% to ~54%. The volume of triangles is still significant, so a lot of overhead is spent just clipping, queuing, etc. them.

This should improve other drawing that uses indices to reuse vertices, though likely not nearly to the same degree.

-[Unknown]

Oops, meant to remove this when refactoring imm prims.
We can just use a dot product instead, and always skip viewpos.
This happens a lot for spline/bezier, so can significantly speed up curve
heavy scenes.  Isn't necessarily that common otherwise, though.
@hrydgard hrydgard merged commit d743bfa into hrydgard:master Sep 23, 2022
@unknownbrackets unknownbrackets deleted the softgpu-vert branch September 24, 2022 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants