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

GS/HW: Add NativePaletteDraw upscaling fix #8524

Merged
merged 6 commits into from Apr 1, 2023
Merged

Conversation

stenzek
Copy link
Member

@stenzek stenzek commented Mar 31, 2023

Description of Changes

Required for Crash Bandicoot: The Wrath of Cortex.

It constructs a new P8 texture in local memory based on the depth buffer, by reinterpreting it as C8, then draws a bunch of tiny sprites to C32, then reinterprets this as P8. Any single pixel being off breaks the effect, which is why it didn't work with upscaling before.

Untitled

So, this PR adds a new upscaling hack to force these palette texture draws to native resolution instead. WoC looks fairly good, the edges are still a bit rubbish, but they are at native in the software renderer too. The effect just.. isn't fantastic.

Before:
Untitled
After:
Untitled

It also helps Driv3r's glitched out text (similar method to draw), punting that to the CPU would be ideal, but that introduces other issues.

Rationale behind Changes

Closes #2380.
Closes #6006.

Suggested Testing Steps

Test Crash WoC.

@refractionpcsx2 refractionpcsx2 merged commit e8e9702 into PCSX2:master Apr 1, 2023
12 checks passed
@stenzek stenzek deleted the woc branch April 2, 2023 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants