Git rejects efficient storage for efficient retrieval of most recent revisions. As a result it works very well for its primary use case (small text files, typically code, that often don't span many files in a single changeset). But it's a horrible choice of source control for projects with much larger and/or binary artifacts such as video game production where large media assets are the bulk of the repository.
I'd say git's storage is fine, but that it's designed with the goal of restoring exact snapshots of the checked-in repo, which requires keeping a copy of each version of every file. It's just that text files both compress well on their own, and delta-compress with similar versions well, so a locally-cloned repo full of code doesn't take up too much space on disk even with hundreds of thousands of commits. It's not necessarily any less efficient at accessing decade-old revisions.
If you don't need code versions to exactly match the asset versions in every single commit, they don't need to be put in the same repo. If you don't need to switch between revisions while offline or search history/blame without round-trips to a server, you don't need to make a full local clone. Perhaps the ideal case for game development would be to keep assets separate, so that you can make a full clone of the code repo, and a shallow clone of only the most recent few revisions of the asset repo.
Heck, feels like git's only missing one 'tiny' feature to be perfectly fine working with all the binary assets a game dev might use: A way to specify filename patterns, much like .gitignore's, that are only to be downloaded lazily, when a revision is actually checked out. Then only the repo server needs to keep copies of every single version, and your local clone only proactively fetches source code and other files that naturally delta-compress well.
Git can kind of do that with partial clones with a filter set to only pulling down only commits, trees, as well as max size for blobs if requesting blobs. Afterward it can then dynamically fetch missing trees or blobs when needed, optionally using different promisor remote for large objects blobs.
EpicGames's version control system Lore is also working on/maybe implemented combined checked out repos\sub modules that don't suck, that would work well for art assets/built binaries/libs. There also working on working on some VFS to dynamically materialized files when accessed like VSF for Git the other reply mentioned.
11
u/-Redstoneboi- Oct 09 '26
wtf that seems quite inefficient