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: Optimize rectangle sampling/blending used in bloom #16094

Merged
merged 4 commits into from
Sep 24, 2022

Conversation

unknownbrackets
Copy link
Collaborator

These are fairly small gains but they help us skip steps in larger draws and bloom situations. Only gives a percent or so, but I think worth it.

-[Unknown]

This happens in Ridge Racer, and we can entirely skip the color test.
Sometimes the vertex color or alpha can allow us to optimize away some
multiplication.
Sometimes used by blends used purely to multiply the source color by
something, usually prep for bloom.
@hrydgard hrydgard merged commit 895b916 into hrydgard:master Sep 24, 2022
@unknownbrackets unknownbrackets deleted the softgpu-bloom branch September 24, 2022 14:22
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