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

use Zstd for wiHelper::Compress #1012

Merged
merged 1 commit into from
Jan 12, 2025
Merged

use Zstd for wiHelper::Compress #1012

merged 1 commit into from
Jan 12, 2025

Conversation

brakhane
Copy link
Collaborator

ZStd has better compression and is faster as well:

Before (Deflate):

Total compressed: 48927172 -> 12048973 (24%)
[Wicked Engine Offline Shader Compiler] ShaderDump written to wiShaderDump.h in 8.864 seconds

Now:

Total compressed: 48927172 -> 8954159 (18%)
[Wicked Engine Offline Shader Compiler] ShaderDump written to wiShaderDump.h in 0.7831 seconds

(It's also possible to use a higher compression level than 3, but 3 usually works well enough. Just for fun, I tested with the extreme setting 19, it reduced it to 16%, but took a whopping 21 seconds.)

@brakhane brakhane force-pushed the zstd branch 4 times, most recently from bc57261 to e2b1c2b Compare January 12, 2025 00:56
@turanszkij turanszkij merged commit 9b7e102 into master Jan 12, 2025
3 checks passed
@turanszkij turanszkij deleted the zstd branch January 12, 2025 06:40
@turanszkij
Copy link
Owner

That's great, thanks!

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.

2 participants