News for hackers. Stuff that matters.
Re:Beta users of Starlink get downloads of 11 to 60 Mbps by csharptwdec19 on Friday August 14, 2020 @06:01PM (#24163823)
IDK if they do this for PC versions...

But a lot of these games not only Reuse textures but also duplicate them. They do this to improve load times for levels/etc (less seeking).

Playstation DOOM is an early example of this pattern. The WAD files were actually 'per-level' and contained all sprites/textures/etc used in said level.

Re:Beta users of Starlink get downloads of 11 to 60 Mbps by antris on Friday August 14, 2020 @06:06PM (#24163871)
Wouldn't duplicated textures get de-duplicated by any halfway-decent compression algorithm though? I'd assume the game is sent over the wire compressed
Re:Beta users of Starlink get downloads of 11 to 60 Mbps by labawi on Friday August 14, 2020 @07:46PM (#24164583)
Most compression algorithms have a limited data reference window (dictionary size) - tens to hundreds of MB being typical upper limits. If duplicated data is further apart, it gets compressed again.

If the data isn't pre-compressed, or doesn't otherwise significantly vary, then using the right tools should de-duplicate the data. Things like lrzip, rsync batch mode, bdiff should work well. If large blocks are identical, many filesystem archivers/backup solutions should do good deduplication, and squashfs can be kind of nice.

Re:Beta users of Starlink get downloads of 11 to 60 Mbps by csharptwdec19 on Friday August 14, 2020 @06:23PM (#24164013)
That MIGHT be happening, honestly not sure.

There are possibly challenges in that however, my understanding of most compression algos (which may be inaccurate or incorrect) is that you'd run into limitations either with size of data overall or the memory requirements.

Of course, I'm sure there's other ways around that (And I have no clue if they are in use). One option would be to send over the assets in a master 'assets' package and then duplicate/assemble the data as intended during installation.

Re:Beta users of Starlink get downloads of 11 to 60 Mbps by enkid on Friday August 14, 2020 @06:18PM (#24163971)
That's not how compression would work. Think about if they are adding a new level. The algorithm would have nothing to compare the files against except what is actually being sent. If the texture appears in each level, and each level comes in a separate update, there's no way for the algorithm to reference or incorporate the files that are already in your computer, so it has to compress it like it's a brand new file. That is unless you have a costume installer which duplicates the file once it runs, but that would probably be a ton more work for the developers.
Re:Beta users of Starlink get downloads of 11 to 60 Mbps by Dylan16807 on Saturday August 15, 2020 @12:51AM (#24166048)
You have this completely wrong. "there's no way"? It's extremely easy to make a patch file that references existing data. This is a problem that has been solved many times.

And that's not relevant to initial install anyway, which can/should be a single download.

Re:Beta users of Starlink get downloads of 11 to 60 Mbps by enkid on Saturday August 15, 2020 @10:47AM (#24169253)
But thats not compression. That's downloading and running an executable that duplicates files.
Re:Beta users of Starlink get downloads of 11 to 60 Mbps by Dylan16807 on Saturday August 15, 2020 @02:02PM (#24170854)
Having a reference dictionary is a type of compression.

You need a program that decompresses no matter what, and the ability to reference existing files barely changes it. It's not a post-processing stage where files get copied around. It's the ability to reference arbitrary chunks of data inter-file just like it can reference arbitrary chunks of data intra-file.

At the most basic level it's like taking a compressed file and chopping it in half. The user already has the first half, then they download the second half and "resume" decompressing.

Re:Beta users of Starlink get downloads of 11 to 60 Mbps by smilliken on Saturday August 15, 2020 @01:50PM (#24170740)
What's your definition or compression? A .tar.gz will de-duplicate files that will be re-duplicated on decompression.
Re:Beta users of Starlink get downloads of 11 to 60 Mbps by foota on Friday August 14, 2020 @07:10PM (#24164345)
I think AAA games do this now anyway to allow this like smaller patches and playing while the game downloads.