Pavel Djundik (@xpaw.me)
bsky.app
external-link
Steam is working on adding zstd compression for game chunks (every game file is split into 1MB), it currently uses LZMA. Wonder how much of an overall improvement it will be.
vaguerant
link
fedilink
1719d

“Better” doesn’t always mean “smaller”, especially in this example. LZMA’s strength is that it compresses very small but its weakness is that it’s extremely CPU-intensive to decompress. Switching to ZSTD will actually result in larger downloads, but the massively reduced CPU load of decompressing ZSTD will mean it’s faster for most users. Instead of just counting the time it takes for the data to transfer, this is factoring in download time + decompression time. Even though ZSTD is somewhat less efficient in terms of compression ratio, it’s far more efficient computationally.

@[email protected]
link
fedilink
English
119d

Bet that’ll save Valve on some server costs too. Storage is much cheaper than compute (though I imagine they’ll probably keep LZMA around for clients on slow connections).

@[email protected]
link
fedilink
English
619d

Doesn’t decompression only happen client-side? I don’t imagine them compressing the files multiple times.

@[email protected]
link
fedilink
English
319d

Hmm true. I was thinking that steam has a lot of games and respective builds it has to compress, even if the decompression benefits are clientside only.

Each new game update would also be compressed too - I have no idea how Steam handles the update to work out what files need replacing on their end though, which might involve decompressing the files to analyse them.

Jerkface (any/all)
link
fedilink
English
018d

“most users” have gigabit pipes to the internet?

Create a post

For PC gaming news and discussion. PCGamingWiki

Rules:

  1. Be Respectful.
  2. No Spam or Porn.
  3. No Advertising.
  4. No Memes.
  5. No Tech Support.
  6. No questions about buying/building computers.
  7. No game suggestions, friend requests, surveys, or begging.
  8. No Let’s Plays, streams, highlight reels/montages, random videos or shorts.
  9. No off-topic posts/comments, within reason.
  10. Use the original source, no clickbait titles, no duplicates. (Submissions should be from the original source if possible, unless from paywalled or non-english sources. If the title is clickbait or lacks context you may lightly edit the title.)
  • 1 user online
  • 146 users / day
  • 439 users / week
  • 1.19K users / month
  • 3.37K users / 6 months
  • 1 subscriber
  • 5.01K Posts
  • 33.8K Comments
  • Modlog