Any way to compress game files on linux? I know that all games vary, content vary and so on, but is there any things i can look out for in like an average steam game which I can compress, and the game can still run fine, tools or programs or anything?

    • Quazatron@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      4 months ago

      This is how I do it. I put my Steam directory in an external BTRFS drive with compression turned on. Works great, and allows me to take my library between computers.

      • wltr@discuss.tchncs.de
        link
        fedilink
        arrow-up
        0
        ·
        4 months ago

        Have you measured the difference? Is it huge? I’m curious to understand what the trade-offs are and how many more games can you store on the same drive.

        • Quazatron@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          4 months ago

          My main goals are efficient space usage and portability, so I’ve never measured anything. I’ll get some stats for you.

          • wltr@discuss.tchncs.de
            link
            fedilink
            arrow-up
            0
            ·
            4 months ago

            I would appreciate even not very accurate comparison just to get the idea. A brief search meanwhile showed me it’s a great idea actually. But having someone who uses that to comment would be great too. Thanks.

              • wltr@discuss.tchncs.de
                link
                fedilink
                arrow-up
                1
                ·
                4 months ago

                No problem, take your time. Feel free to comment on here, or in private, whatever you’re comfortable with.

                • Quazatron@lemmy.world
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  4 months ago

                  Turns out that you have to explicitly mount btrfs with the option compress=zstd (or compress=lzo as you prefer) to get any compression done, and I was not doing that. Also, to apply compression to existing data, you have to defragment with compression enabled. Alternatively, you can create a subvolume and set the compression property.

                  This explains it quite well.