Skip to content

Commit

Permalink
Change Deflate compression level to Fastest. (#6812)
Browse files Browse the repository at this point in the history
  • Loading branch information
MutantAura authored May 16, 2024
1 parent 091230a commit 9ec8b2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ryujinx.Graphics.Gpu/Shader/DiskCache/BinarySerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public void BeginCompression(CompressionAlgorithm algorithm)

if (algorithm == CompressionAlgorithm.Deflate)
{
_activeStream = new DeflateStream(_stream, CompressionLevel.SmallestSize, true);
_activeStream = new DeflateStream(_stream, CompressionLevel.Fastest, true);
}
}

Expand Down Expand Up @@ -206,7 +206,7 @@ public static void WriteCompressed(Stream stream, ReadOnlySpan<byte> data, Compr
stream.Write(data);
break;
case CompressionAlgorithm.Deflate:
stream = new DeflateStream(stream, CompressionLevel.SmallestSize, true);
stream = new DeflateStream(stream, CompressionLevel.Fastest, true);
stream.Write(data);
stream.Dispose();
break;
Expand Down

0 comments on commit 9ec8b2c

Please sign in to comment.