Skip to content

Commit

Permalink
Remove algo nonsense
Browse files Browse the repository at this point in the history
Fast mode (algo = 0) can use only 1 thread, therefore this should be set to 1 since GMod uses numThreads=2.
  • Loading branch information
Cheatoid committed Apr 2, 2021
1 parent 0497139 commit 47d1d2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LzmaDotNet/util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static class util
int lc; // number of literal context bits; 0 <= lc <= 8; default = 3
int lp; // number of literal pos bits; 0 <= lp <= 4; default = 0
int pb; // number of pos bits; 0 <= pb <= 4; default = 2
int algo; // 0 - fast, 1 - normal, 2 - ???; default = 1
int algo; // 0 - fast, 1 - normal; default = 1
int fb; // number of fast bytes; 5 <= fb <= 273; default = 32
int btMode; // 0 - HashChain mode, 1 - BinaryTree mode; default = 1
int numHashBytes; // 2, 3 or 4; default = 4
Expand All @@ -26,7 +26,7 @@ public static class util
private const int pb = 2;
private const int lc = 3;
private const int lp = 0;
private const int algo = 1; // Note: GMod uses 2 for this, but we gotta use 1.
private const int algo = 1;
private const int fb = 32;
private const string mf = "bt4";

Expand Down

0 comments on commit 47d1d2f

Please sign in to comment.