Compression (Source 1)

From Valve Developer Community
Revision as of 16:02, 17 May 2023 by SirYodaJedi (talk | contribs) (→‎Dedicated Server FastDL Compression: a 1280-byte RES file doesn't really need to be compressed)
Jump to navigation Jump to search

Describe importance of compression here

Texture Compression

  • DXTn
  • BGR565
  • BC7 (only in Strata Source)
  • VTF 7.6 (only in Strata Source)

Audio Compression

  • MP3
  • ADPCM
  • Ogg Vorbis?

Map Compression

Dedicated Server FastDL Compression

Source supports FastDL downloads to be compressed using BZip2 (BZ2). The files will be decompressed by the user client after downloading. It is recommended to compress most loose files that are larger than a couple kilobytes (VTF, WAV, MDL, etc). BSP files should be compressed with BZ2 if not already compressed with BSPZIP. MP3 files are already heavily compressed and do not substantially reduce in size from BZ2 compression; BZ2 compression of MP3s or BSPZIP-compressed BSPs may unnecessarily increase user client load times with negligible bandwidth savings.

File System Compression

User-side; last resort

  • NTFS compression
  • BTRFS compression