Compression (Source 1): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 16: Line 16:


== Dedicated Server [[FastDL]] Compression ==
== Dedicated Server [[FastDL]] Compression ==
* BZ2 (BZip2)
Source supports FastDL downloads to be compressed using [[Wikipedia:Bzip2|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 kilobyte ([[VTF]], [[WAV]], [[MDL]], etc). [[.bsp (Source)|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 ==
== File System Compression ==

Revision as of 15:59, 17 May 2023

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 kilobyte (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