Skip to content

enhance MMPX algorithm part 2#20541

Merged
hrydgard merged 1 commit intohrydgard:masterfrom
crashGG:mmpx-enhace
Jun 18, 2025
Merged

enhance MMPX algorithm part 2#20541
hrydgard merged 1 commit intohrydgard:masterfrom
crashGG:mmpx-enhace

Conversation

@crashGG
Copy link
Copy Markdown
Contributor

@crashGG crashGG commented Jun 18, 2025

Fix luma function to ensureluma increases linearly with alpha value Use conditional weak blending instead of pixel copying to reduce image glitchesartifacts on straight lines Reduce algorithm overhead. Improve the judgment logic
Improved the distance judgment between two pixes by changing the Euclidean formula to dot sets to reduce hardware overhead. Improved some comments to make them easier to read.

LittleBigPlanet (Asia) (En,Zh,Ko)
master:
flag old_cr
pr:
flag new_cr

MediEvil - Resurrection (USA)
master:
medi old
pr:

medi new

Fix luma function to ensureluma increases linearly with alpha value
Use conditional weak blending instead of pixel copying to eliminate artifacts on straight lines Reduce algorithm overhead.
Improve the judgment logic 
Improved the distance judgment between two pixes by changing the Euclidean formula to dot sets to reduce hardware overhead.
Improved some comments to make them easier to read.
@crashGG
Copy link
Copy Markdown
Contributor Author

crashGG commented Jun 18, 2025

Cube (USA)
master:
tube old
pr:
tube new

@hrydgard
Copy link
Copy Markdown
Owner

I'm struggling to see any improvement at all in the above screenshots - do you have some clearer examples? can you circle what to look for?

@crashGG
Copy link
Copy Markdown
Contributor Author

crashGG commented Jun 18, 2025

As I wrote in the description, this is to eliminate or reduce the glitchesartifacts on the edges of straight lines of the graphics, since they are not a major part of the graphic, they are usually not very noticeable.so it is better to download the image locally and quickly switch back and forth between the two to see the difference.
diff
diff2

@crashGG
Copy link
Copy Markdown
Contributor Author

crashGG commented Jun 18, 2025

image
image
image

@crashGG
Copy link
Copy Markdown
Contributor Author

crashGG commented Jun 18, 2025

Another example:
NPJH50333
master:
diff3

pr:
dragon new

@hrydgard
Copy link
Copy Markdown
Owner

OK, I get it now :) Thanks!

@hrydgard hrydgard merged commit b615888 into hrydgard:master Jun 18, 2025
21 checks passed
@hrydgard hrydgard added this to the v1.20 milestone Jun 18, 2025
@hrydgard hrydgard added the GE emulation Backend-independent GPU issues label Jun 18, 2025
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.

2 participants