Blog

Version Control for Game Dev: Git LFS vs Perforce vs Unity VCS

Git LFS, Perforce or Unity Version Control? Which one fits your team, engine and AI agent, with setup steps, file locking and prices as of November 2026.

Version Control for Game Dev: Git LFS vs Perforce vs Unity VCS

Which version control should a game project use? In our experience the answer depends on who is on the team. Pick Git with Git LFS if you are an indie or a small team, and especially if an AI agent writes part of your game: branches, pull requests and CI are what keep an agent's work reviewable. Pick Perforce (now sold as P4) if you are a large Unreal studio with hundreds of gigabytes of art and many people touching the same binary files. Pick Unity Version Control if you are a Unity team with artists who should never have to learn Git.

Below we compare the three on what hurts in game development and give a working setup for each. Prices and limits are as of November 2026.

Why Game Projects Break Ordinary Version Control

Version control was built for source code: small text files that two people can edit at the same time and merge line by line. A game repository is mostly something else.

  • Large binary files: textures, audio, 3D models, video, baked lighting. A single PSD or a 4K texture set can be hundreds of megabytes, and every revision is stored again.
  • Files that cannot be merged: an Unreal .uasset or .umap, a PSD, an FBX. If two people change the same one, one of them loses their work.
  • Engine-generated files: Unity .meta files, Unreal Intermediate and DerivedDataCache folders, Godot .godot folders. Some must be committed, some must never be.
  • People who are not programmers: artists, designers and sound designers who need to get the latest build and submit an asset without thinking about rebasing.

A good game version control setup answers four questions: where do the big files live, how do you stop two people from editing the same binary, what gets ignored, and how does a non-programmer use it every day. Every option below answers them differently.

Git LFS vs Perforce vs Unity Version Control: The Short Comparison

Here is how the three compare on the points that decide most choices.

Git with Git LFS for Binary Assets

  • Model: distributed. Everyone has the full history of text files; large files are replaced by small pointers and downloaded from an LFS server on demand.
  • Binary files: handled by Git LFS. On GitHub, regular files above 100 MiB are blocked, and LFS files can be up to 2 GB on the Free and Pro plans, 4 GB on Team and 5 GB on Enterprise Cloud.
  • Locking: yes, with git lfs lock, but it is opt-in and people have to remember to use it.
  • Cost on GitHub: 10 GiB of LFS storage and 10 GiB of bandwidth included on the Free and Pro plans, 250 GiB of each on Team and Enterprise Cloud, then billed by usage.
  • Tooling: the largest ecosystem there is. Pull requests, code review, CI runners, hosting on GitHub, GitLab, Bitbucket or your own server, and every AI coding agent knows Git.
  • Weak spot: artists. Git's concepts (staging, rebasing, detached HEAD) are a real barrier, and a repository with years of large assets still gets heavy to clone.

Perforce (P4, formerly Helix Core)

  • Model: centralised. The server holds the history; you sync only the files and revisions you need into a workspace.
  • Binary files: what it was built for. Repositories of many terabytes are normal in AAA studios.
  • Locking: exclusive checkout, which you can enforce per file type, so a .uasset can only be checked out by one person at a time.
  • Cost: free for up to 5 users and 20 workspaces. Beyond that it is a quote from Perforce, and the hosted P4 Cloud is listed at 39 US dollars per user per month.
  • Tooling: deep integration with Unreal Engine, which ships a Perforce source control provider in the editor, plus visual clients for artists.
  • Weak spot: branching and code review feel heavier than in Git, you run or rent a server, and AI agents and most modern CI templates assume Git.

Unity Version Control (formerly Plastic SCM)

  • Model: centralised or distributed, your choice per user. Programmers can branch and merge like in Git; artists can use Gluon, a simple client that works file by file.
  • Binary files: handled natively, no extension needed.
  • Locking: built in, with locks you configure for binary file types.
  • Cost: since 1 March 2026 Unity no longer charges for cloud seats. Each organisation gets 25 GB of storage and 100 GB of egress per month included, with extra egress at 0.10 US dollars per GB.
  • Tooling: built into the Unity Editor and the Unity Cloud dashboard, with Unity DevOps around it.
  • Weak spot: outside Unity the ecosystem is small, and fewer CI tools, hosting options and AI agents speak it natively.

Which One Should You Pick?

These are our recommendations, based on the projects we have built and the teams we work with.

  • If you are a solo developer or a team of up to about ten people, pick Git with LFS.
  • If an AI agent writes code or creates assets in your project, pick Git with LFS. The agent can branch, commit and open a pull request, CI checks the result, and you review a diff before anything reaches main.
  • If you work in Unreal Engine with a large team and a lot of shared art, pick Perforce. Exclusive checkout on .uasset and .umap files is what keeps map work from colliding, and it is what most Unreal studios already use.
  • If you work in Unity with artists who just want to get the latest and submit their work, pick Unity Version Control and give the artists Gluon.
  • If you work in Godot, Three.js or Bevy, pick Git. Their project files are mostly text, and the binary assets fit comfortably in LFS.
  • If you already pay for one of them and it works, stay. Migrating version control in the middle of production costs more than any difference between the tools.

You can also mix them. Some studios keep code in Git, where reviews and CI live, and keep the heavy art in Perforce. It works, but only do it when the art volume forces you.

Why Git Wins When an AI Agent Works on Your Game

This is the part that changed our own choice. An AI agent is fast, which means it can also make a large mess quickly. The safety net is not the agent, it is the workflow around it, and that workflow is built on Git.

  • Branches isolate experiments. Ask the agent to try a new movement system on a branch, and main stays playable whatever happens.
  • Pull requests make every change reviewable. You read the diff, ask for fixes, and merge only what you understand.
  • CI runs on every push. Tests, a headless build, a lint step: the agent gets the failure and fixes it before you look.
  • Commits are a cheap undo. If the experiment fails, you throw the branch away.
  • Agents already know Git. Every coding agent can run git status, git diff and git commit without special tools.

In the AI Game Developer app, the Source Control tab shows the branch, ahead and behind counts and a diffstat, and lets you commit and pull without leaving the chat. Changed images open as a side-by-side comparison, so you can check a texture the agent generated before you commit it. We walk through that loop in ai-game.dev/blog/ai-game-dev-workspace-panes-previews-git. The project's Knowledge Base is plain Markdown committed with the rest of the game, so design decisions get the same history and review as code (ai-game.dev/blog/game-project-knowledge-base-for-ai).

Set Up Git LFS for a Game Project

This setup works for Unity, Godot and most other engines.

  1. Install Git LFS once per machine with git lfs install.
  2. Add a .gitignore for your engine before the first commit. GitHub's gitignore repository has templates for Unity, Godot and Unreal.
  3. Add a .gitattributes file that sends binary types to LFS and marks the unmergeable ones as lockable.
  4. Commit .gitattributes first, then the assets, so they go to LFS from the start.
  5. Turn on branch protection for main: require a pull request and a green CI run.
BashTerminal
git lfs install
git lfs track "*.psd" "*.png" "*.tga" "*.exr" "*.fbx" "*.blend" "*.wav" "*.ogg" "*.mp4"
git add .gitattributes
git commit -m "Track binary assets with Git LFS"

The resulting .gitattributes can be edited by hand. The lockable flag makes those files read-only until someone locks them, which reminds everyone to take the lock first.

Bash.gitattributes
*.psd   filter=lfs diff=lfs merge=lfs -text lockable
*.blend filter=lfs diff=lfs merge=lfs -text lockable
*.fbx   filter=lfs diff=lfs merge=lfs -text lockable
*.png   filter=lfs diff=lfs merge=lfs -text
*.tga   filter=lfs diff=lfs merge=lfs -text
*.exr   filter=lfs diff=lfs merge=lfs -text
*.wav   filter=lfs diff=lfs merge=lfs -text
*.ogg   filter=lfs diff=lfs merge=lfs -text
*.mp4   filter=lfs diff=lfs merge=lfs -text
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf

Locking is then three commands, and on GitHub it works across all clones of the repository.

BashTerminal
git lfs lock Art/Characters/Hero.blend
git lfs locks
git lfs unlock Art/Characters/Hero.blend

Unity-Specific Settings

For Unity, two editor settings make Git work well. In Project Settings, Editor, set Asset Serialization Mode to Force Text, so scenes and prefabs are YAML that Git can diff, and keep Version Control Mode on Visible Meta Files. Always commit the .meta file together with its asset: a missing .meta breaks references for everyone else. Unity's Smart Merge tool (UnityYAMLMerge) can merge scene and prefab conflicts semantically; register it as the unityyamlmerge driver in your Git config.

Keep an Eye on LFS Usage

Every downloaded LFS file counts against bandwidth, and CI that clones the repository on every run can use up a free quota fast. Cache the LFS objects in CI, or only fetch what the job needs with git lfs pull --include. If your art grows beyond what fits comfortably in the included storage, compare the cost of extra GitHub LFS storage with a self-hosted LFS server before you switch tools.

Set Up Perforce for an Unreal Project

If you go with Perforce, these are the steps most Unreal teams follow.

  1. Install the P4 server, or use P4 Cloud, and create a depot for the project.
  2. Set a typemap so Unreal binary assets are stored as binary with exclusive checkout.
  3. Add a .p4ignore that excludes Binaries, Intermediate, Saved and DerivedDataCache.
  4. In the Unreal Editor, connect to Perforce through the source control settings, so checking out and submitting happens from the editor.
  5. Give artists a visual client and teach them two actions: get latest and submit.

The typemap entries that matter most look like this.

Bashp4 typemap for binary files
binary+l //....uasset
binary+l //....umap
binary+l //....psd
binary+l //....fbx

With +l, a second person who tries to check out a locked map gets a clear message instead of a merge conflict after a day of work. In Unreal Engine 5, the One File Per Actor option splits a level into many small files, so several people can work on the same map while each holds locks on only the actors they change.

Set Up Unity Version Control for a Unity Team

  1. Open the Unity Hub or the Unity Cloud dashboard and enable Version Control for the project's organisation.
  2. In the Unity Editor, open the Unity Version Control window and create a workspace for the project.
  3. Configure lock rules for binary types such as .psd, .fbx and .png, so they are locked on checkout.
  4. Programmers use the full client with branches and merges; artists use Gluon, pick the files they work on, and check in.
  5. Keep an ignore.conf with Library, Temp, Obj and Logs, the same folders a Unity .gitignore excludes.

Watch the monthly storage and egress on the organisation's dashboard. The included 25 GB is plenty for a small project and runs out quickly once raw source art goes in.

A Checklist for Any Game Repository

Whichever tool you choose, these habits save the most pain.

  • Decide the tool before the first asset is committed. Moving history later is the hardest part of a migration.
  • Commit the ignore file and the binary rules first.
  • Never commit engine caches: Unity Library and Temp, Unreal Intermediate, Saved and DerivedDataCache, Godot .godot.
  • Lock every file type that cannot be merged, and make locking the default rather than a habit people must remember.
  • Keep source art (PSD, Blend, high-poly sculpts) and exported game assets in clearly separate folders, so you can store or prune them differently.
  • Commit small and often, with a message that says why.
  • Back up the server or the remote. Version control is not a backup if it lives on one disk.
  • Let CI build the game on every change to main, so a broken asset is caught the day it lands.

Where AI Game Developer Fits

AI Game Developer works on top of the version control you choose: the agent edits scripts, scenes and assets in your project through the engine plugins, and your history records every change. With Git it fits most naturally, because the app's Source Control tab, the agent and your CI all share the same branches and diffs, and you review each change before it lands. Plugins are available for Unity, Unreal, Godot and more (ai-game.dev/engines/unity, ai-game.dev/engines/unreal).

Download the app at ai-game.dev/download, open a project that is already under Git, ask the agent for one small change on a new branch, and review the diff in Source Control before you merge. That one loop is the best argument we know for picking Git in a game project that works with AI.

More from the blog

All posts