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

Detect more triangles as rectangles in softgpu #16011

Merged
merged 4 commits into from
Sep 12, 2022

Conversation

unknownbrackets
Copy link
Collaborator

This detects rectangles made of regular triangles in throughmode, which some games use. It also detects multiple rectangles from triangle strips, which many games use to draw rectangle strips as triangles too.

-[Unknown]

Seen in a dump from Infected, improves FPS ~25% there.
Could maybe even combine these into one large rectangle, but the main
benefit is avoiding triangles.
@unknownbrackets unknownbrackets added this to the v1.14.0 milestone Sep 12, 2022
@hrydgard hrydgard merged commit 2791ab3 into hrydgard:master Sep 12, 2022
@unknownbrackets unknownbrackets deleted the softgpu-rect branch September 12, 2022 06:57
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.

2 participants