lovr icon indicating copy to clipboard operation
lovr copied to clipboard

lovr.data.compress/decompress

Open bjornbytes opened this issue 4 years ago • 3 comments

Expose deflate since that is already used all over the place. Unsure if compression should be exposed though -- it's a lot more complicated and is currently not used for anything. Would be nice for doing project exports maybe, but in a way those are kinda better off uncompressed.

bjornbytes avatar Apr 22 '21 18:04 bjornbytes

compression is really useful, strongly support exposing it. over in my voxel project compression is the difference between <100mb and gigabytes of ram usage for the same data set.

shakesoda avatar Apr 22 '21 18:04 shakesoda

I quite like the implementations here, stb_image can probably be told to use it and the filesystem module can also use it.

bjornbytes avatar Apr 22 '21 18:04 bjornbytes

Darn, stb_image doesn't have a built-in way of switching out its zlib implementation (only stb_image_write does)

bjornbytes avatar May 01 '21 01:05 bjornbytes