• AdrianTheFrog@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    7 hours ago

    The problem is, if you used normal compression formats, you would have to decompress them and then recompress them with the GPU supported formats every time you wanted to load an asset. That would either increase load times by a lot, or make streaming in new assets in real time much harder.

    • Draconic NEO@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      3
      ·
      7 hours ago

      There are still other compression schemes which can be used to save space, and not compressing anything is a bad idea, it’s not the biggest waste of space but it is a waste.

        • Buddahriffic@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 hour ago

          It can actually be quicker to store them compressed because memory and bus bandwidth is often a bottleneck. So instead of the cpu or gpu wasting cycles waiting for data to be moved, some of that movement time is shifted to the processors by using compression. Especially if there are idle cores that could be put on that task.

          As for going from one compression format to another, you could store them in the final format (and convert on install if it differs between hardware setups, repeating if another hardware setup is detected).

          Though if there’s any processing done on the uncompressed data (like generating mipmaps or something), that conversion might not even cost extra because it needs to be decompressed and the new data compressed again anyways.

          Though on that note, you’d get faster load times by just storing all of those preprocessed and faster install times by just sticking it all in the install download, so there is still a conflict between optimal load speeds and minimal storage space.