Garry's Mod

Garry's Mod

100 ratings
So what's the deal with the 64bit branch?
By Phatso
"What's all the fuss with the 64 bit branch? Should I care?"

I'm glad you asked!

My name is Phatso, I run CFC Servers[cfcservers.org]. We've run sandbox servers for the last 10 years, and I'd like to share my personal understanding and experience with the x86-64 branch.

In this guide, I hope to:
  • Explain what the x86-64 branch is
  • Point out some benefits of the x86-64 branch
  • Highlight the drawbacks and considerations of the x86-64 branch
  • Explain how to install and use the x86-64 branch
  • Share some useful information for server owners
2
9
2
2
   
Award
Favorite
Favorited
Unfavorite
What is the x86-64 Branch?
Garry's Mod is an old game. By default, it's a 32-bit app.
This means (among other things) it's limited on how much of your system's RAM it can use (~4gb).

Memory isn't usually a huge concern for Garry's Mod (it was made to only use 4gb), but the x86-64 branch comes with some other benefits:
  • Access to experimental multi-threading features
  • Major update to the embedded Chromium browser (Chrome 18 [2012] -> Chrome 86 [2020])
  • Various performance enhancements, more efficient use of system resources, etc.

In theory, the x86-64 branch should perform better. Your frame rate should be higher, your load times should be lower, and your overall experience should be better.
Concerns and Considerations
In practice there are a few concerns you should consider:

1. Updated Chromium
The updated Chromium version allows your game to make use of the latest HTTP security features, but it's also harder to protect you from malicious addons that use the browser's extra capabilities. Web browsers are powerful, and the Facepunch team is concerned that the newer version of Chromium could open users up to obscure attacks and/or privacy concerns.

2. Trouble in Performance Town
Some older computers won't be able to take advantage of the performance enhancements that x86-64 provides. Most of the time in these cases, the user notices no difference. Sometimes, though, this leads to stability problems.

3. Just in Time for Lagmas
Garry's Mod uses Lua for its non-source game code, we all know this. What you might not know is that Garry's Mod uses a special flavor of Lua called "Lua Just in Time". Very simply, it's supposed to be fast Lua. In general, it is impressively fast. However, on the x86-64 branch, LuaJIT appears to perform significantly worse in some cases - which may actually reduce overall performance. This seems to depend a lot on which addons you use most.

4. No guarantees
This is still technically an experimental branch. This means Facepunch can't guarantee that your security, performance, stability, or experience will be optimal.
TL;DR
  • It might be generally better
  • You can use cooler addons and see cooler loading screens / motds
  • Get big frames
  • You probably won't be subject to a catastrophic 0-day attack

Really, the biggest concern in my eyes (and purportedly, Facepunch's too) is the risk of falling victim to a new exploit.

These exploits could range in severity. Some exploits may allow other players to crash your game. Or, if a malicious player found a really bad exploit, they may be able to gain access to your whole PC.

There's no way of knowing how safe it actually is. That's the tradeoff.
How do you use the x86-64 branch?
1. Right click on Garry's Mod in Steam, click "Properties"




2. Click on the "Betas" tab (don't worry, this won't make you gay)




3. Click the x86-64 - Chromium + 64-bit binaries option from the dropdown




4. You're done! Just wait for Gmod to download the new x86-64 files, then you'll be able to select the 64-bit branch when you launch Garry's Mod


Servers and the x86-64 Branch
Can servers use the x86-64 branch?
Yes! Servers can indeed use the new branch.

How do I use it on my server?
Because everyone has a different setup for their servers, it'd be very difficult for me to explain every way to do this. I'm afraid you'll need to use some google-fu for this.

I will, however, offer some advice for some common scenarios:

If you rent a server from a company:
  • You should try looking through your server panel for "branch" or "betas" settings. If you can find these options, you should be able to figure out how to configure it.
  • If you can't find anything in your interface, try submitting a support ticket asking if they can help you

If you self-host
  • SteamCMD has a -beta flag you can use during install. You can install a new server instance and move over all of your files.
  • LGSM has a simple config option that lets you set your branch. After updating it to x86-64, you can run ./gmodserver install again to have it acquire all of the new files you need.

Should servers use the x86-64 branch?
Well.. that depends.

I've run our servers on the 64-bit branch for a couple of years now. In my experience, we haven't had any notable performance boost. We have, however, had a lot more engine crashes.

It's also very difficult to get third-party binary modules for 64-bit, because most developers only compile for the 32-bit version of the game.

Ultimately, I don't recommend it, unless you plan on sending crash dumps over to Rubat on a daily basis :)
Want to help improve this guide?
Do you also know too much about Garry's Mod?
I'd love your help!

Please feel free to leave a comment or reach out to me directly with corrections, enhancements, suggestions, etc. I want this guide to be as helpful as possible!
45 Comments
4GClaroARG 15 Oct, 2024 @ 5:41pm 
I've been using my server on x64 for 3 days now and I have to say it's bad. They update almost every day and there's always some plugin that breaks or LUA errors that appear due to a bad update.

And the performance improvement I feel is almost imperceptible, 32 players on 66tickrate felt just as slow as on 32-bit.

Not to mention it crashed twice in those 3 days, running a month before without crashing even once with the default version.

Or I just got unlucky and upgraded to the x64 version when they released broken updates.
Horror 31 Jul, 2024 @ 9:43pm 
@M!LF$@%%

Google "GModCEFCodecFix Guide (macOS)" and navigate down to the "❓ Players: How to use" section. Follow the guide using the macOS option. Boom. Crashes gone.
Skai Jackson 1 Jul, 2024 @ 9:47am 
trying to use this to play on mac but it keeps crashing can anyone help?
Phatso  [author] 27 May, 2024 @ 5:10pm 
Be sure to give the guide a thumbs up if you enjoyed it! :)
Tomonop 27 May, 2024 @ 5:00pm 
I appreciate you sharing your knowledge of the x86_64 branch of Garry's Mod.
Sayuri 22 Apr, 2024 @ 2:09pm 
Of course as soon as I post that my server has had a bunch of crashes out of nowhere lol

I love Garry's Mod
Phatso  [author] 21 Apr, 2024 @ 10:41pm 
Perhaps it was something specific about our addons, but our server stability improved dramatically when swapping from x86-64 to main branch on Linux - our metrics showed significantly fewer crashes
Sayuri 21 Apr, 2024 @ 6:03pm 
In my (about 10 year) experience I think both the 32 and 64 bit branches of server crash a lot, it's Garry's Mod. I think the specific combination of linux and 64 bit seem to perform very well, but that could just be the hardware I use. I'd tell budding server admins to just try them all out, that is the way.
Phatso  [author] 16 Mar, 2024 @ 6:12pm 
It did happen :(
Metabloxer 16 Mar, 2024 @ 2:50pm 
I interpreted the "You probably won't be subject to a catastrophic 0-day attack" being crossed out as "This has happened" rather than "you really shouldn't worry about it", as discussed in the comments. IMO a footnote for that line to clarify would be nice (or just remove the line).