UPDATE: I have changed my mind on this. Read my new blog post on this.
Being in the gaming industry about 10 years and playing with some open-source projects means I have dealt with different version control systems, or VCSs, from complete free, brute-force manual file copy method to very expensive commercial-grade Perforce.
So which program am I using at home? Subversion…. I know! A lot of people will argue that other programs are better, and I am not gonna say they are wrong. The reason why I'm using Subversion is because it does what I want with the least amount of annoyance. Below is the list of what I need/want from my personal VCS and how the most popular VCSs do the job:
Yes, I'm a MS whore. I use Windows all the time, and I, as a game programmer, personally don't see huge need for Linux for myself. Also if I can maintain only one OS at home, that's less drama for me. (Yay?).
- Git(-2): I like Git a lot, especially how it handles branches, so I really wanted to use it on Windows. But, as far as I know, the only way to use Git server on Windows is through Cygwin or msysgit. Cygwin is basically doing Linux emulation in a sense, and I personally don't enjoy installing Cygwin. msysgit is a bit easier to install on Windows, but still I had to set up SSH or what not, so there's no one-button solution for Git on Windows. So big no-no to a MS whore like me.
- Perforce(+1): Perforce supports Windows pretty well. It comes with easy-to-install server program/service for windows.
- Subversion(+2): This was actually a big surprise to me. There is a program called VisualSVN Server, which is one-click solution for Subversion server on Windows. It just works and comes with https access and access control all in one nice and simple GUI. This was even easier than installing Perforce.
Occasional Multi-User Support
Although my VCS is mostly there to keep a history and backups of my own codes, sometimes I open it up to my friends so that I can get useful feedback from them. So having multi-user support is very useful for me.
- Git(+1): Git can easily support multiple users. But setting access control for each users can be a bit of PITA on Windows. When I tried it last time, I had to make fake Windows user accounts and hook'em up with SSH.
- Perforce(-1): Perforce is free for either i) 2 users and 5 client workspaces, or ii) unlimited users and up to 1000 files. I have more than 1 friend (at least I wanna believe that :P ) so first option doesn't seem to work that great. What about 1000 files and unlimited users? Well, I've already passed 1,000 files: Playing with 3rd party open-source project breaks this boundary very easily. Furthermore, I don't want to pay a few hundred dollars for the simple need of VCS.
- Subversion(+2): As I said earlier in Windows Support section, VisualSVN Server comes with a nice GUI where you can simply setup users and access control. So another big thumbs up from me.
I'm cheap. I love free stuff.
- Git(+1): free
- Perforce(-1): free for limited use. And apparently I'm not limited?
- Subversion(+1): free</ul>
I'm in love with Perforce's nice GUI clients. Not so much with P4V; more with P4Win. But P4Win is discontinued…. Oh well, P4V is still good enough. Sure, I still use command-line a lot for certain things GUI clients don't support, but I found 90% of time, using GUI clients are much faster and easier.
Git(-1): it doesn't have any nice free GUI client as far as I know. There are some being developed at this moment, but they don't seem to be mature or free enough to use them. TortoiseGit is good enough most of the time. But I still prefer P4Win style, real GUI clients.
- Perforce(+2): P4Win is awesome. P4V is great, too.
- Subversion(+1): I found a program called SmartSVN. It has limited functionalities unless you buy the pro version, but I found the basic free version is good enough for day-to-day operations. Anything that cannot be done through the free SmartSVN version, I use TortoiseSVN. Then anything that cannot be done by TortoiseSVN, I use command-line.
Who doesn't love branching? It's such a neat tool to fuck around(read it as experiment) your code without ruining your projects.
- Git(+2): I love the powerful branching feature of Git. You don't need to make a copy in different directories, so it helps a lot with path referencing in the code. Say you have a program that links with library Awesome, and now you wanna branch library Awesome. With Git, you simply need to switch to different branch and build. But with other source control systems like Perforce, you will have to branch the library into a different directory and change the library path in your program code.
- Perforce(-2): As I just explained in Git section above, branching into different folder sucks. Also the speed of branching a large number of files is slow because Perforce server controls everything. Network speed is slower than your HDD's spin rate.
- Subversion(-1): The speed is fast enough. But still you have to branch into different directory.. uggh.. that bothers me.
- Git: +1
- Perforce: -1
- Subversion: +5. Oh there it is. Winner, winner, chicken dinner
Don't forget. This is the score for my personal need. Not for the big giant game studios. So if you ever comeback and say "but Perforce is better because it can supports 200 users easily", I'm gonna make you watch this video for 2 hours before you go to bed.