r/factorio • • 2d ago

Question how does factorio run on linux

Hi guys,

For personal reasons, I've stopped using Windows and switched to Ubuntu. I'd like to play Factorio in my spare time, so I'm wondering how well it performs on Linux. Any experiences or tips would be appreciated!

37 Upvotes

128 comments sorted by

35

u/UndefFox 2d ago

You didn't do any research yourself, did you? "Factorio Windows vs Linux" shows several results that it runs if not as good, but probably better, with zero complaints about anything else/

3

u/communismwillwin1970 2d ago

sorry my question caused your displeasure,i just want to get a reliable answer🥲🥲

-1

u/UndefFox 2d ago

Why apologize? Just do better next time/ Or ignore me, it's your decision, just own it whatever you choose.

8

u/KaiFireborn21 2d ago

Yeah, OP couldn've searched this instead of asking.... Somewhat annoying 

 But maybe this thread will at least pop up for others in the future

8

u/H_Industries 2d ago

Let’s be real though if people searched for their questions instead of asking on reddit the site would die overnight from a 95% drop in traffic

1

u/IlikeJG 2d ago

Also to be fair to question askers the question is often specific enough that it's hard to find online and easier to just ask from people who already know about the subject.

But In this case, yeah googling would get you easy and fast answers.

3

u/UndefFox 2d ago

 But maybe this thread will at least pop up for others in the future

Very naive of you. Why put any effort when they can do the exact same and people still reply. r/cpp_questions has both pinned post and link in the rules for study materials and FAQ... people still post the same post of "how to learn C++", sometimes daily. You have to actively start rejecting people the easy way out or they'll just continue/

3

u/KaiFireborn21 2d ago

True enough. Too bad that's exactly the way chatbots destroy study

3

u/UndefFox 2d ago

Yeah, LLMs are way too enabling of those who don't want to even think... tho, I think we have to solve the underlying problem of people not even having any value for quality in the first place, otherwise it just trying to heal symptoms/

397

u/toothlesshy 2d ago

Flawless.

95

u/mindstorm8191 2d ago

You can even do auto-save without Factorio pausing the game (although if you're not at 60 UPS you'll notice a slight slow-down of the game just from saving).

It's a secret setting though, and I don't remember how to access it; I think you can just look it up

25

u/budoe 2d ago

No i think it does it by default on Linux. Only thing i ever changed in the config files is the number of auto saves.

16

u/dudeguy238 2d ago

It's worth noting that it does this by duplicating the Factorio process for the duration of the save, so if your computer can't handle running two copies of the game at the same time because Sam Altman repossessed your RAM, you might crash it if you try to use the setting.

14

u/HerissonMignion 2d ago

I think it's because fork is the stardard way to create a new process. However iirc linux implements copy on write for the fork syscall, therefore you shouldn't need litteraly twice the amount of ram needed to run factorio

5

u/rysto32 2d ago

The problem is that while the game is running it's likely to do at least one write to every page of the process while the saving is running so you do wind up copying basically everything.

6

u/nixtracer 2d ago

Not hardly. Most of the running game data in memory except in the very largest of megabases is the sprite tables. This is never touched after startup.

2

u/UndefFox 2d ago

Even then, the map doesn't change, nor most buildings positions between auto saves. Idk how they separate data, but if it's a data oriented design, usually it'll have tons of untouched values too.

13

u/Wertbon1789 2d ago

async saves aren't a secret setting, they were just experimental for many years, but they're supported now AFAIK.

15

u/Employee_Agreeable 2d ago

Victory

1

u/astmatik 2d ago

Babality

4

u/Aron-Jonasson Average train enjoyer 2d ago

Babaisyou

2

u/nuttynuto 2d ago

Animality

1

u/wubrgess 2d ago

Flawlessly.

-4

u/TheBigGambling 2d ago

Latest update caused some trouble, did not work fullscreen. But windowed is equaly good.

180

u/Tartaros030 2d ago

It works even better than on Windows. Linux is a first party platform for Factorio and is known to have better performance on it, and even a few exclusive features (e.g. blocking-free saves) 

16

u/liquid_soylent 2d ago

This.

I started a new playthrough a few days ago, first time on linux, and couldn't report any problems, even if I wanted.

9

u/LFBJ_0911 2d ago

Except the complaint of having no complaints...

13

u/liquid_soylent 2d ago

You have to know, I'm from Germany, complaining is some sort of our tradition.

54

u/maxymob 2d ago

It runs native, this is the best compatibility level possible

10

u/IlikeJG 2d ago

Lots of games run native on Linux.

The issue is most of the time the devs don't keep them running on Linux and don't keep up with updates compared to Windows updates. So the Linux versions get shitterier and shittier. So most of the time using proton version is better than native version.

Factorio is one of the few games that actually runs better in native Linux version.

5

u/dzyp 2d ago

I do this with civ 6. For whatever reason, it plays better for me using proton than using the native client. Factorio is not an issue though, native client plays great (bazzite for me).

3

u/shyguybestguy 2d ago

The civ 6 native client also isn't even updated to the same version that the windows client is for some reason

1

u/walkingman24 2d ago

Agreed, I have several games where they have a native linux client (Warhammer III, Civ 6) but they are still better under Proton because they are behind on updates or just have other issues.

47

u/tolomea 2d ago

I tend to forget that my gaming machine is Linux, Factorio is working fine on it.

11

u/PersonalityIll9476 2d ago

Same. Proton is so good now that I haven't used Windows in a long time.

12

u/ionburger 2d ago

factorio is native

4

u/PersonalityIll9476 2d ago

Completely aware.

2

u/Dysan27 2d ago

Why aren't you using the native version?

9

u/PersonalityIll9476 2d ago

I do use Linux native Factorio. Referring to the transition to Linux as a full-time gaming machine.

4

u/Claus83 2d ago

I've been gaming on linux for half a year and everything has worked perfectly out of box. There are few games with anticheats that don't run, which I haven't even tried. Biggest problems I've had has been with discord screen share.

1

u/United_Willow1312 2d ago

Very few games haven't worked for me in the last two years. There was an issue with zoning in Enshrouded, Titan Quest II worked out of the box originally but after act III got released it no longer worked, those are the only two I can think of.

23

u/DDoSMyHeart 2d ago

I wouldn’t be surprised if the devs made the game on Linux and Windows was an afterthought.

22

u/satansprinter 2d ago

There are mega base runners like u/abucnasty that switched to linux because it was more performant

2

u/Neither_Berry_100 2d ago

Came here to say this

1

u/OvercastqT 2d ago

runs like butter on bazzite linux!

8

u/mwjb86SFW 2d ago

I know Raiguard uses Linux

4

u/Visionexe HarschBitterDictator 2d ago

It's not the case. They started on windows. But very quickly made native on all major platforms. They do have quite some Linux  orientated devs by now 

2

u/Icemourne_ 2d ago

Factorio has native version even for Mac Linux was no brainier

15

u/DasFreibier 2d ago

better than windows

15

u/Zijkhal spaghetti as lifestyle 2d ago

Performance is better on Linux than in Windows. You won't have any trouble.

10

u/Conscious-Ball8373 2d ago

There are three ways of running it:

  1. Native standalone Linux version. Download from the Factorio website. Note that if you have purchased on steam you can link your factorio and steam accounts and download the standalone version without buying it again.
  2. Native Steam version. If you like Steam.
  3. Emulated Steam version running under proton. If you like Steam and emulation. Not sure why you'd do this, but it's possible.

I ran the native Steam version for a long time but recently switched to the native version. It has some nice extra features, like background saves.

6

u/Brigobet 2d ago

You can activate background saves in Steam too, it is not there by default.

1

u/crazllamafarmer 2d ago

I’m on Linux and just run through steam. I have checked and it’s not running through proton but you’re saying theres more benefits to the e downloaded version? What are they apart from saved?

2

u/Conscious-Ball8373 2d ago

For one thing, you don't kill a pile of memory running Steam. And you don't have to check for Steam updates every time you launch Factorio.

But OTOH you get all the stuff that comes with Steam. And it probably depends a fair bit whether you're the sort of person who has Steam open all the time to see who's online and earning achievements and whether you have heaps of games you've bought through Steam. So depends whether you value that or not.

5

u/Samsagax 2d ago

Better than on Windows. And for Linux guys is the gold standard of a good native port.

Enjoy your async saves!

6

u/Sephi-Chan 2d ago

It’s perfect and even better than Windows: you get the async save!

3

u/jsrobson10 2d ago

it runs on linux better than it runs on windows

3

u/user3872465 2d ago

It can perform up to 30% better and you have non blocking quicksaves

3

u/Agreeable-Performer5 2d ago

Actually better than on Windows.

3

u/albinocreeper 2d ago

Better, you can save without the game pausing 

3

u/HerissonMignion 2d ago

It runs very well

2

u/HidingRaccoon 2d ago

I use it via steam on ubuntu: no problems whatsoever.

2

u/vaminos 2d ago

Just fine for me. Had some issues with the sound driver but they were resolved easily.

2

u/MotanulScotishFold 2d ago

I'm on Linux since 2024 and I have 3k hours in this game, 1k on Linux alone.

It just works flawless.

2

u/_choam_ 2d ago

It runs well

2

u/Wertbon1789 2d ago

Factorio is one of the rare games that have native Linux support, and treat Linux as a first-party platform.
If you mess around in Steam, just don't select a Proton version for it on the compatibility section, just leave it at the Steam runtime version that's the default, then it uses the native Linux version.
In Factorio itself, there's a setting to enable proper Wayland support, which you might want. I think it defaults to X11, but maybe that's not the case anymore.

2

u/Raiguard Developer 2d ago

In 2.1, Factorio will default to Wayland if the compositor supports fifo-v1, and will otherwise default to X11.

1

u/djfdhigkgfIaruflg smartass inserter 2d ago

Hey Raiguard would it be plausible to get an arm (linux) binary? Playing on my raspberry pi 5 with the 4k TV would be awesome 🙏

2

u/luziferius1337 1d ago

There is one. But the Pi5 GPU lacks required features to run the graphics. You'll need an external GPU connected via the PCIe slot.

1

u/djfdhigkgfIaruflg smartass inserter 1d ago

Yes. I've just read the post 😭

1

u/peikk0 2d ago

There is already one since 2.1 https://factorio.com/blog/post/fff-446

1

u/djfdhigkgfIaruflg smartass inserter 1d ago

From the Post's text it appears like the PI can only be used as server, not for playing with graphics 😭😭😭

2

u/djfdhigkgfIaruflg smartass inserter 2d ago

It runs better than on windows

3

u/Beregolas 2d ago

Perfectly, no issues, just download, click and play. If you want to check for yourself for any steam game, you can check protondb.com

1

u/akobberup 2d ago

brilliant

1

u/re4perthegamer 2d ago

Natively, and great 2.1 even added arm support

1

u/MinMaus 2d ago

Better then windows

1

u/StickyMcFingers 2d ago

The native version runs on my dual core celeron with 2GB RAM from 100 years ago ((at 1fps), which is incredible performance for a laptop that can't even open a modern web browser. NixOS minimal under x11. Runs superbly on my gaming desktop of course.

1

u/Jonathan_Is_Me 2d ago

Literally better than Windows, to the point where I'm wondering if OP is baiting.

1

u/KaiFireborn21 2d ago

Bro they rewrote certain parts of the backend to exploit an optimization possibility only possible due to particularities of the Linux process scheduler. Of course they did, it's Wube.

You won't find any game that runs better

1

u/Laughing_Orange 2d ago

Benchmarks show Factorio runs even better on Linux than it does on Windows. That's true even if you enable all the tweaks on Windows and leave the Linux version stock. And there are tweaks you can do on Linux to raise performance even further.

1

u/ezoe 2d ago

Better than Windows. It has pause-free saving thanks to fork(You must manually enable it in hidden option.)

1

u/DoKeMaSu 2d ago

It runs slightly better than on windows. 

1

u/Orgerix 2d ago

It run even better than on windows, because you can enable non blocking save, which make a big difference on big games.

1

u/United_Willow1312 2d ago

No experience or tips required. There's a hidden feature to enable pause-less saves on Linux which I"m not using.

Microsoft has built a special allocator for Linux which is enabled by changing the Launch Option (I'm on steam) to: LD_PRELOAD=/usr/local/lib/libmimalloc.so %command%

I haven't a clue which package I installed for that to work, but my browser says I"ve visited this page: https://github.com/microsoft/mimalloc

This is presumably good for Factorio performance though I hadn't reached a megabase worthy of it yet.

1

u/TheMcSebi 2d ago

Better than Windows

1

u/Vanquiishher 2d ago

Linux is just a better platform. Anything that runs on it natively without compatibility layers will likely run more performant than windows counterpart. But Linux distributions are usually an afterthought because of the small amount of people who use them for gaming. Thanks to Steam (godsend of a company), this is changing due to the steam deck and steam machines along with their SteamOS distribution and proton work. making it more accessible for Linux gaming.

Still good to dual boot both windows & Linux if you can.

Dev on Linux, game on windows. Thats how I roll

1

u/Nameru99 2d ago

It runs better than on windows

1

u/krazye87 2d ago

Aparrently it runs decent on a raspberry pi 5 as per info from the blog of the release of the steam frame.

1

u/H_Industries 2d ago

If you’re up for a bit of tinkering (and depending on your hardware) I switched my gaming PC to steamOS and it’s been pretty seamless.

3

u/dzyp 2d ago

I'm going to get down voted for this but Claude code has been great for Linux gaming. I just tell it what issue I'm having and it debugs it. It makes gaming in Linux much more approachable in my opinion.

1

u/OvercastqT 2d ago

nope, same experience with gemini. as a AI hater i have to admit they are great for troubleshooting software

1

u/Molwar 2d ago

I prob switched to linux mint around the time 1.0 dropped and played 500-600hr since and no issue, finished space age too.

1

u/WarpGremlin 2d ago

Factorio is my main game. I've been mainlining Debian Trixie for a year.

It works perfectly.

1

u/IlikeJG 2d ago

Famously well!

Factorio is the poster child for Linux compatibility and optimization. It often runs even better on Linux than Windows and I personally have never encountered a Linux specific bug.

1

u/Visionexe HarschBitterDictator 2d ago

It runs better on Linux then on windows. A lot of megabasers play on Linux for that reason. 

1

u/No_Mango7658 2d ago

No issues ever. Maybe even better than on windows... 🤷

1

u/R_C_Jr 2d ago

I play it on an Open Mandriva system using Steam’s Proton compatibility. Runs like a dream. I didn’t do any tinkering. Just flipped the button and it just works.

1

u/Small_Ad3541 2d ago

Factorio has official builds for Linux, so you don’t even need Proton.

Recently, the cooling fan on my potato laptop broke, so I removed it - integrated graphics, Intel i5 evo, Ubuntu distro. Factorio works smoothly on this setup, even with heavy mods like Krastorio 2:)

1

u/theAnalyst6 2d ago

Im able to run the full game on Linux debian 12 without any issue. My laptop hardware is well over 10 years old

1

u/templarrei 2d ago

Better than it did on Windows, for me at least.

1

u/AntelopeThick1093 2d ago

On my system it runs on both, win and Linux Mint. Linux is very smooth, never had a problem

1

u/Moikle 2d ago

The same as windows, except on linux, saving doesn't pause the game for a second

1

u/1001Airstrikes 2d ago

Perfect, no issues

1

u/vanatteveldt 2d ago

Like a legendary mech suit full of legendary exoskeletons

1

u/ryntak 2d ago

Excellent. I think there is a native build.

1

u/F_Synchro 2d ago

They even made it run on ARM/Steamframe.

Moral of the story, it runs better on linux.

1

u/Dull-Chocolate-3866 2d ago

Seamlessly with no tweaking, effort, or modifications at all (Ubuntu + Steam)

1

u/Zushey312 2d ago

Better it runs better

1

u/Hebbu10 2d ago

Like 20% better performance conpared to Windows

1

u/Little_Elia 2d ago

This video goes very in depth into this https://youtu.be/4pno-7ZcA0E

tldr factorio is very optimized in both, you're not going to feel a difference unless you megabase, and if you do linux is a bit better.

Also being able to keep playing while it autosaves is a GODSEND

1

u/endgamedos 2d ago

They made the GNU/Linux port better than the Windows one. Because of the fork() syscall which Windows lacks, Factorio on GNU/Linux can run autosaves in the background without freezing the game.

1

u/Zakiyo 2d ago

Better than on windows and it runs natively

1

u/MarcPG1905 2d ago

Better performance than windows, and you get some neat extra features that don’t exist on windows. Most noticeably, saving in the background using process forking (Linux kernel feature)

1

u/weirdboys 2d ago

Actually massively better than windows, at megabase level when your pc starts to crawl, linux is about 15% faster than windows out-of-the-box. With all tweaks applied, it can be 30% faster.

1

u/Gerlond 2d ago

Only issue I encountered is that my CachyOS couldn't't copy a huge blueprint book so I had to download it instead.

1

u/aishiteruyovivi 2d ago

A while back I was away from my PC for a bit so I played a lot of Factorio on my Linux laptop for a few days, I'm not a megabaser to be fair but it was running at a pretty consistent 60 FPS/UPS in my endgame base.

1

u/Trek186 2d ago

Works perfectly fine on Bazzite and SteamOS.

1

u/HS_Seraph 2d ago

Current Fedora and former Mint user here, it runs native with no problems 

1

u/Intelligent-Net1034 2d ago

Perfect. They have a Linux build

1

u/Best_Tool 2d ago

Zero problems.

1

u/ScallionSmooth5925 2d ago

Better then on windows

1

u/Key-Cod9591 1d ago

It like native window with lutrius

1

u/HildartheDorf 99 green science packs standing on the wall. 1d ago

Better than windows.

1

u/kettle3 7h ago

Perfectly. I never ran it anywhere BUT Linux Mint.

-6

u/Acceptable-Dot8122 2d ago

Either the game runs well with Valve Proton, or even better with a native build (biggest exception are anti-cheat).