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

Add heuristic for memory->framebuffer copies, fixing video flicker in Naruto UNH 2 #18008

Merged
merged 2 commits into from
Aug 29, 2023

Conversation

hrydgard
Copy link
Owner

@hrydgard hrydgard commented Aug 29, 2023

Fixes #17740

The game makes a copy of video data that we detect as being to a left-behind 16-bit framebuffer, overlapping the intended target. This makes a heuristic check for old framebuffers that are too small, and decides that it's probably not the right target.

Alternatively, we should simply copy to all overlapping buffers...

Actually, thinking of adding scoring here like in other cases of framebuffer matching, which would reduce the potential fallout in case some game accidentally relies on the old behavior. Might do that before merge. Done.

@hrydgard hrydgard added the GE emulation Backend-independent GPU issues label Aug 29, 2023
@hrydgard hrydgard added this to the v1.16.0 milestone Aug 29, 2023
@hrydgard hrydgard merged commit 985af4b into master Aug 29, 2023
18 checks passed
@hrydgard hrydgard deleted the naruto-video-flicker-heuristic branch August 29, 2023 11:21
hrydgard added a commit that referenced this pull request Sep 12, 2023
…heuristic"

This reverts commit 985af4b, reversing
changes made to 64d0478.
hrydgard added a commit that referenced this pull request Sep 12, 2023
Revert "Merge pull request #18008 from hrydgard/naruto-video-flicker-heuristic"
@hrydgard hrydgard restored the naruto-video-flicker-heuristic branch October 3, 2023 12:58
@hrydgard hrydgard deleted the naruto-video-flicker-heuristic branch October 3, 2023 12:58
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.

Naruto: Ultimate Ninja Heroes 2: Flicker on story mode videos
1 participant