bjornbytes / lovr

Lua Virtual Reality Framework
https://lovr.org
MIT License
1.68k stars 131 forks source link

lovr.data.compress/decompress #420

Open bjornbytes opened 3 years ago

bjornbytes commented 3 years ago

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.

shakesoda commented 3 years ago

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.

bjornbytes commented 3 years ago

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

bjornbytes commented 3 years ago

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