pcsx2 icon indicating copy to clipboard operation
pcsx2 copied to clipboard

GS/HW: Add Limit 24 Bit Depth Hack

Open JordanTheToaster opened this issue 3 weeks ago • 4 comments

Description of Changes

Adds a new hardware hack to prioritise the upper or lower of depth.

Worms Forts Under Siege

Before: image

After using prioritize lower: image

Flower sun and rain

Before: image

After with prioritize upper: image

Disaster Report

Before: image

After prioritize lower: image

The king of fighters 2002

Before: image

After prioritize lower: image

Rationale behind Changes

This may fix some of the worst z fighting in games such as the Worms series.

Suggested Testing Steps

Test any games with z fighting using the new option to see if it helps and if it doesn't end up breaking them worse than before.

Did you use AI to help find, test, or implement this issue or feature?

No

JordanTheToaster avatar Dec 05 '25 14:12 JordanTheToaster

Fixes z-fighting in Worms 3D and Worms 4 Mayhem.

Before: image image

After (Prioritize Lower): image image

MarioSonic2987 avatar Dec 05 '25 14:12 MarioSonic2987

"Prioritize Lower" solves all of these SNK games :

NGBC :

FE883E27
7D6924E8
3724DA5C

KOF2002 :

CF1D71EE
ABD16263
7F74D8D0

KOF2002UM :

0A70CB4C
439656F5

KOF2003 :

B967F21F
0334185F
D2EC432D

KOFNW :

0109B59E
F5090D15

KOF94R :

E74F7C39
E64F90E5

KOF98UM :

E7516A6E
FD714FCB
E5A904B3

KOFXI :

E4BB51C1
581A4DAA
542210E4

Finally, no cheats/pnach needed for HW. Also there weren't anything that would solve upscaling in KOF94R and KOF98UM before :).

Immersion95 avatar Dec 07 '25 10:12 Immersion95

Hello! Would this fix also impact issue https://github.com/PCSX2/pcsx2/issues/12670 in Haunting Ground?

A developer mentioned something related to "z-fighting" in a comment, so I thought I could ask about it.

Thank you so much in advance for your attention.

dezraj avatar Dec 09 '25 12:12 dezraj

Hello! Would this fix also impact issue #12670 in Haunting Ground?

A developer mentioned something related to "z-fighting" in a comment, so I thought I could ask about it.

Thank you so much in advance for your attention.

Nope, it doesn't. Prioritizes upper removes that line but breaks everything, prioritize lower does nothing

Prioritize upper immagine

Prioritize lower immagine

bigol83 avatar Dec 09 '25 12:12 bigol83

@bigol83 Could potentially be fixed if more degrees to 'how lower/upper the prioritization is' were added.

Heit0fff avatar Dec 10 '25 14:12 Heit0fff

prioritize lower seems to fix quake 3 revolution

prafullpcsx2 avatar Dec 15 '25 18:12 prafullpcsx2