martin-marek / hdr-plus-swift

📸Night mode on any camera. Based on HDR+.
https://burst.photo
GNU General Public License v3.0
208 stars 11 forks source link

Look into Lossless Compression for Cache #32

Closed Alex-Vasile closed 4 months ago

Alex-Vasile commented 1 year ago

Currently the texture cache (and other textures) are stored in memory with no compression. Metal appears to support lossless compression, this would be worth looking into to reduce memory usage.

Alex-Vasile commented 12 months ago

Potential lead: MTLTextureDescriptor.compressionType. We would have to version get it for ≥ macOS 12.5.

Alex-Vasile commented 4 months ago

I don't think this is needed anymore.