medfall

A super great game engine
Log | Files | Refs

commit df958acdda45c14321ce975e8dbaeabbdac20387
parent b13d658fda0ded9da7f0752c050f8d1ffcee31b8
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat, 11 Nov 2017 10:51:11 +0200

Use LZ4HC_DEFAULT_CLEVEL

Diffstat:
pp.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pp.cc b/pp.cc @@ -167,7 +167,7 @@ static void build_quadtree( const array2d< u16 > heightmap, array< QuadTreeNode static void write_compressed_file( MemoryArena * arena, const DynamicString & path, const void * data, size_t len ) { MEMARENA_SCOPED_CHECKPOINT( arena ); - const int COMPRESSION_LEVEL = 6; + const int COMPRESSION_LEVEL = LZ4HC_DEFAULT_CLEVEL; int lz4_bound = LZ4_compressBound( len ); char * lz4 = memarena_push_many( arena, char, lz4_bound ); int lz4_size = LZ4_compress_HC( ( const char * ) data, lz4, len, lz4_bound, COMPRESSION_LEVEL );