FNA-XNA / FNA3D

FNA3D - 3D Graphics Library for FNA
http://fna-xna.github.io/
Other
267 stars 44 forks source link

Compress FNA3D traces by default #203

Open flibitijibibo opened 2 months ago

flibitijibibo commented 2 months ago

The compression ratio of traces is usually really low (sometimes less than 1%...?!) so we should probably just skip the manual compression step and do this at runtime.

We already have miniz in the repo, so maybe we can just use that? Since the ratio is so low we can prioritize performance and it will still almost certainly be super tiny compared to the uncompressed trace.

kg commented 2 months ago

Oh, I didn't notice miniz. That should definitely do the trick as long as it's not too slow. If it is, we could probably use one of the fast lz* algorithms, I think they're pretty small.