Skip to content

Improve WebP settings#21

Open
jonnyawsom3 wants to merge 5 commits into
Yellow-Dog-Man:mainfrom
jonnyawsom3:EncodingTweaks
Open

Improve WebP settings#21
jonnyawsom3 wants to merge 5 commits into
Yellow-Dog-Man:mainfrom
jonnyawsom3:EncodingTweaks

Conversation

@jonnyawsom3

@jonnyawsom3 jonnyawsom3 commented Jul 28, 2025

Copy link
Copy Markdown

Increases lossless encoding speed tenfold and improves lossy quality while halving filesizes.
Last commit only makes it 2x faster but also 20% smaller, to avoid edge cases where the image was larger.
Rebase of #17 due to messy communication and commit history.

To fix #20, the JPEG and PNG changes need to be implemented within FrooxEngine, which is being discussed in Yellow-Dog-Man/Resonite-Issues#4953 and my comment in Yellow-Dog-Man/Resonite-Issues#874 (comment).

@jonnyawsom3

jonnyawsom3 commented Aug 16, 2025

Copy link
Copy Markdown
Author

Copied from Yellow-Dog-Man/Resonite-Issues#874 (comment)

Here are current PNG saving times compared to my recommendations. 15x faster and only 15% larger.

Seconds Old New Speed Size
1080p 7.77 0.53 14.66x +10%
1440p 13.67 0.91 15.02x +10%
2160p 31.21 1.92 16.26x +14%
4320p 126.4 7.63 16.56x +20%

JPEG results. Half the size at the same quality, still under half a second.

2160p Seconds Size (MB) SSIMU2 (Quality)
Old 0.26 3.24 87.19
New 0.46 1.31 86.98

Unfortunately testing WebP in-game requires recompiling FreeImage, which we couldn't do, but here are external results.
Different resolutions use different images, so speed and size will vary, but smaller on average and 10x faster.

Seconds Old New Speed Size
1080p 1.47 0.145 10.14x -3.4%
1440p 2.15 0.26 8.27x +1.2%
2160p 5.9 0.6 9.84x -0.3%
4320p 28.5 2.47 11.54x -2.2%

@j4lc j4lc added this to Jae's tasks Aug 16, 2025
@j4lc j4lc moved this to Pending discussion in Jae's tasks Aug 16, 2025
@j4lc

j4lc commented Oct 27, 2025

Copy link
Copy Markdown
Member

@jonnyawsom3 Hey, your PR looks good, I'd merge this as-is, but the workflows need to pass.

There was a slight issue in the configuration which was fixed in the latest main. Could you please rebase your branch onto it, so everything can run?
Thanks!

@jonnyawsom3

Copy link
Copy Markdown
Author

Hopefully that fixes it, though there's also the changes in #20 to do in FrooxEngine too. Thanks for taking a look at it!

@jonnyawsom3

Copy link
Copy Markdown
Author

Anything left to do my side?

@j4lc

j4lc commented Nov 4, 2025

Copy link
Copy Markdown
Member

Nope, that's perfect. Sorry for the delays, I'm gonna test this now.

@j4lc j4lc moved this from Pending discussion to Priority upcoming in Jae's tasks Feb 23, 2026
@j4lc j4lc self-assigned this Feb 23, 2026
Still 2x faster than main, but also 15% smaller too.
@j4lc j4lc requested review from BlueCyro and j4lc April 23, 2026 07:32
@j4lc j4lc added the enhancement New feature or request label Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Priority upcoming

Development

Successfully merging this pull request may close these issues.

Configuration tweaks

2 participants