Skip to content

Fixed false-positive image reuploads #1557

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

Merged

Conversation

roamic
Copy link
Collaborator

@roamic roamic commented Nov 20, 2024

Should fix half of the rainbow artifacts in BloodBorne.
Big thanks to @raphaelthegreat and @psucien for helping debug and fix this.

@Missake212
Copy link
Contributor

Missake212 commented Nov 20, 2024

tried a full run in central yharnam, it is greatly reduced but I still got one (and it's way more purple than it used to be, also got it on one broken crate) great work !
Capture d'écran 2024-11-20 202650
Capture d'écran 2024-11-20 203833

@AwesomeSoftware79
Copy link

AwesomeSoftware79 commented Nov 20, 2024

Improved a lot, but still a couple of rainbow effects here and there (once in about 45 min.)-

image

@GHU7924
Copy link

GHU7924 commented Nov 20, 2024

I made a circle in Central Yharnam, and during that time I had only one moment:
1

Edit: If something needs to be entered in the Log Filter, then write it, I will test it later if necessary.

@TagoSMD
Copy link

TagoSMD commented Nov 20, 2024

NOPE
less frequent but still happen

@roamic
Copy link
Collaborator Author

roamic commented Nov 21, 2024

This fixes half of false-positive image re-uploads. The one we can easily detect. The other half is a lot more complicated to spot so will be out of scope of this PR.

@roamic roamic force-pushed the fix-false-positive-image-reuploads branch from bd5c672 to 34bc350 Compare November 21, 2024 11:54
@roamic roamic marked this pull request as draft November 23, 2024 10:50
@Foul-Tarnished
Copy link

Will this get merged soon ?

I wonder if #1451 helps with the remaining buggy textures 🤔

@roamic roamic force-pushed the fix-false-positive-image-reuploads branch from b940e53 to 05ae3ef Compare November 24, 2024 09:55
@roamic roamic marked this pull request as ready for review November 24, 2024 09:55
@roamic
Copy link
Collaborator Author

roamic commented Nov 24, 2024

The latest commit should solve remaining issues in a non-hacky way.

@rafael-57
Copy link
Contributor

rafael-57 commented Nov 24, 2024

Thank you! Did some rounds of testing with Bloodborne in an heavy area that would produce rainbow corruptions after hitting enemies very fast, haven't seen any so far. If this doesn't regress other games I would merge soon 👍

@Missake212
Copy link
Contributor

Tested through Central Yharnam, killed every enemies like I did last time, not a single rainbow, will try a few more runs but usually I get at least 1, this is amazing work !

@ZuwasieMan
Copy link

ZuwasieMan commented Nov 24, 2024

Played about ca. 45 minutes, I could not find any rainbow/metallic/grey textures. Looks very good.

@roamic roamic marked this pull request as draft November 24, 2024 15:56
@ZuwasieMan
Copy link

After one hour I found one metallic/grey texture:

grafik

@AxeKeeper
Copy link

Скриншот 24-11-2024 233426
Скриншот 24-11-2024 233440
Скриншот 24-11-2024 233523

@roamic roamic force-pushed the fix-false-positive-image-reuploads branch from 2b820c5 to 2b9c17e Compare November 25, 2024 06:50
@roamic roamic marked this pull request as ready for review November 25, 2024 06:50
@Missake212
Copy link
Contributor

Couldn't capture it since it was quick but while hitting an enemy he turned rainbow for a second until I hit him again, beside that didn't see any other rainbows

@roamic
Copy link
Collaborator Author

roamic commented Nov 25, 2024

Couldn't capture it since it was quick but while hitting an enemy he turned rainbow for a second until I hit him again, beside that didn't see any other rainbows

I've seen this too, thought I fixed it with hash initialization. Seems not.

@sam20112011
Copy link

sam20112011 commented Nov 25, 2024

Скриншот 24-11-2024 233426 Скриншот 24-11-2024 233440 Скриншот 24-11-2024 233523

This has been going on for quite some time. Even before the blackness/rainbow fix and with mod from Nexus fix. It's just very rare and hard to pay attention to.

By the way, the rainbow effect on enemies, happens even in the version with the hack. Short. But still.
Perhaps it is really something to do with texture cache overflow, or 2gb buffer bug. Since it happens after a long gaming session.

@roamic roamic marked this pull request as draft November 25, 2024 16:45
@roamic roamic force-pushed the fix-false-positive-image-reuploads branch from 2b9c17e to c24476c Compare November 26, 2024 19:05
@roamic roamic marked this pull request as ready for review November 26, 2024 19:09
@roamic roamic force-pushed the fix-false-positive-image-reuploads branch from c24476c to 0301af9 Compare November 26, 2024 19:11
@roamic roamic force-pushed the fix-false-positive-image-reuploads branch from 0301af9 to 1772826 Compare November 26, 2024 19:11
@Missake212
Copy link
Contributor

Killed everyone in Central Yharnam like usual, not a single rainbow, this might be the one, I'll try a few more times to make sure but it's looking good !

@georgemoralis georgemoralis merged commit 18a36c5 into shadps4-emu:main Nov 26, 2024
10 checks passed
@roamic roamic deleted the fix-false-positive-image-reuploads branch November 27, 2024 14:26
diegolix29 pushed a commit to diegolix29/shadPS4 that referenced this pull request Nov 28, 2024
* Fixed false-positive image reuploads

* Fixed userfaultfd path, removed dead code, simplified calculations

* oopsie

* track potentially dirty images and hash them

* untrack only first page of the image in case of head access

* rebase, initialize hash, fix bounds check

* include image tail in the calculations
diegolix29 pushed a commit to diegolix29/shadPS4 that referenced this pull request Nov 28, 2024
* Fixed false-positive image reuploads

* Fixed userfaultfd path, removed dead code, simplified calculations

* oopsie

* track potentially dirty images and hash them

* untrack only first page of the image in case of head access

* rebase, initialize hash, fix bounds check

* include image tail in the calculations
Xcedf added a commit to Xcedf/shadPS4 that referenced this pull request Nov 29, 2024
Xcedf added a commit to Xcedf/shadPS4 that referenced this pull request Dec 10, 2024
* Fixed false-positive image reuploads

* Fixed userfaultfd path, removed dead code, simplified calculations

* oopsie

* track potentially dirty images and hash them

* untrack only first page of the image in case of head access

* rebase, initialize hash, fix bounds check

* include image tail in the calculations
Xcedf added a commit to Xcedf/shadPS4 that referenced this pull request Dec 27, 2024
* Fixed false-positive image reuploads

* Fixed userfaultfd path, removed dead code, simplified calculations

* oopsie

* track potentially dirty images and hash them

* untrack only first page of the image in case of head access

* rebase, initialize hash, fix bounds check

* include image tail in the calculations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.