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

Fix depal bounds with dynamic CLUT. Fixes lens flare glitches in Ridge Racer #16188

Merged
merged 1 commit into from Oct 9, 2022

Conversation

hrydgard
Copy link
Owner

@hrydgard hrydgard commented Oct 9, 2022

Though doesn't fully fix the lens flare, see below and issue #16083.

With this wrong, we ended up drawing pixels that came from a DONT_CARE init of the depal temp buffer, which was a pile of garbage on Android and blank on PC.

Now, we seem to end up not drawing anything because the depal operation results in transparent black instead of whatever is actually intended, but at least the screen isn't full of glitches when the sun is visible on Adreno.

@hrydgard hrydgard added the GE emulation Backend-independent GPU issues label Oct 9, 2022
@hrydgard hrydgard added this to the v1.14.0 milestone Oct 9, 2022
GPU/Common/TextureCacheCommon.cpp Outdated Show resolved Hide resolved
…e Racer

With this wrong, we ended up drawing pixels that came from a DONT_CARE
init of the depal temp buffer, which was a pile of garbage on Android
and blank on PC.

Now, we seem to end up not drawing anything because the depal operation
results in transparent black into whatever is actually intended, but at
least the screen isn't full of glitches when the sun is visible on Adreno.

See issue #16083
@hrydgard hrydgard merged commit f21fd36 into master Oct 9, 2022
@hrydgard hrydgard deleted the ridge-racer-sun-flare branch October 9, 2022 18:28
hrydgard added a commit that referenced this pull request Oct 9, 2022
Followup to #16188 .

Further fixes the lens flare.

It confused me before that there are two sections of the track on
Sunset Drive where the sun is visible, but only on the second is the
lens flare sprite actually shown, which is rather weird.

Verified that exactly the same thing happens on hardware, so it's not a
glitch!
hrydgard added a commit that referenced this pull request Oct 9, 2022
Followup to #16188 .

Further fixes the lens flare.

It confused me before that there are two sections of the track on
Sunset Drive where the sun is visible, but only on the second is the
lens flare sprite actually shown, which is rather weird.

Verified that exactly the same thing happens on hardware, so it's not a
an emulation problem! Rather seems like a glitch in the game itself.
Nemoumbra pushed a commit to Nemoumbra/ppsspp that referenced this pull request Oct 10, 2022
Followup to hrydgard#16188 .

Further fixes the lens flare.

It confused me before that there are two sections of the track on
Sunset Drive where the sun is visible, but only on the second is the
lens flare sprite actually shown, which is rather weird.

Verified that exactly the same thing happens on hardware, so it's not a
an emulation problem! Rather seems like a glitch in the game itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GE emulation Backend-independent GPU issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants