pcsx2 icon indicating copy to clipboard operation
pcsx2 copied to clipboard

GS-hw: Further optimize blending equations.

Open lightningterror opened this issue 3 years ago • 3 comments

Description of Changes

GS-hw: Further optimize blending equations. Allow to run free sw blend with no texture barriers, more speed for all renderers.

CLAMP 1, negative result will be clamped to 0. Condition 1: (0 - Cs)*Alpha + 0, (0 - Cd)*Alpha + 0 Condition 2: Alpha is either As or F higher than 1.0f (0 - Cd)*Alpha + Cd, (0 - Cs)*F + Cs

Rationale behind Changes

More brr when using blending.

Suggested Testing Steps

Test blending.

lightningterror avatar Apr 03 '22 14:04 lightningterror

With the changes cleaned up and done properly I wasn't able to find any test case that hits the code, maybe not worth committing.

lightningterror avatar Apr 25 '22 00:04 lightningterror

I'm sorry but I've seen "more brr" in more PRs than I can count. what does this mean?

labib2002 avatar May 21 '22 16:05 labib2002

Goes faster.

refractionpcsx2 avatar May 21 '22 16:05 refractionpcsx2

Do you wanna run this through the GS Dump runner (after a rebase)? see if anything changes

refractionpcsx2 avatar Nov 24 '22 23:11 refractionpcsx2

I'll just merge it instead, should be fine, since I didn't manage to find a game that uses it.

lightningterror avatar Nov 25 '22 13:11 lightningterror