Skip to content

GS/TC: Improve target selection on source lookup - #15089

Open
refractionpcsx2 wants to merge 1 commit into
masterfrom
gs_shadowheartsnonsense
Open

refractionpcsx2 wants to merge 1 commit into
masterfrom
gs_shadowheartsnonsense

Conversation

@refractionpcsx2

@refractionpcsx2 refractionpcsx2 commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Description of Changes

Improves the areas checked for matching targets during source lookup

Rationale behind Changes

Previously we were setting the start coordinates for the requested area to 0,0 for X and Y, but this caused a problem in some games where they would for example, set the TBP to 0x0 and then offset the rect by 448, which is technically looking at 0xe00, but because of our previous code, this would then pick the target at 0x0 and just break.

These changes are quite invasive in the source lookup behaviour and there is a small modification which may adjust software behaviour (testing now), but this will improve Shadow Hearts Covenant effects during battles.

Suggested Testing Steps

Try a whole load of games, notable ones which I broke during development were Hitman Contracts/Blood Money, Beyond Good and Evil, Ridge Racer V, Need for Speed Hot Pursuit 2, Project Snowblind and Minority Report, so check those for any problems, but also pick a random smattering of games. And of course, check Shadow Hearts Covenant.

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

No

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.

3 participants