461 points · by Sebb767 · 4y ago · 264 comments
I have so much respect for Wube. Absolutely amazing quality and care in everything they do.
Factorio is the standard against which I compare not only other games, but all other software. For polish, stability and craftsmanship. I hope they read this thread because the love for the game everywhere is truly well deserved.
I considered the crash a Quality Of Life feature to make me stop playing and get some sleep.
With Factorio even the bugs are features.
But that said, I will echo everything else you said about it as a piece of software.
It is probably very unpopular but maybe one has to start asking in what way humanity as a whole does benefit from the creation of such addictive games.
Theodor Kaczynski wrote in one of his books that computer games will increasingly distract younger generations(males are obviously more affected) from solving urgent issues resulting in an erosion of freedom. maybe he was right
Nobody can and does spend 12 hours a day solving "urgent issues", we all need ton do something to decompress and relax, and video games are a modern way of doing so.
Factorio has provided a sandbox for me to visualize and acquire skills on managing bottlenecks in data flows; skills that I have and am applying as the point software engineer to resolve critical bottlenecks in multiple e-commerce systems. I won't speculate as to the commercial value of resolving those data bottlenecks here, but whatever dollar number you're imagining is, I suspect, probably missing multiple zeroes.
I think games are fine as long as you are living an otherwise full life. Games are only problematic if they are an opiate that prevent you from achieving goals outside of virtual entertainment. Games should not be a present day "soma" to paraphrase some words from https://en.wikipedia.org/wiki/Amusing_Ourselves_to_Death
Also 1000 hours for a game can be similar to how many hours of TV many watch in a year, at least games involve more active engagement and problem solving.
If you want to rail at wasted time, there are much better targets out there. Try corporate tax accountants, or insurance salesmen, or fossil fuel PR goons; people actively destroying value.
We have PFAs in the rain; plastic on Mt. Everest and the Mariana Trench. We have a warming planet alongside proxy oil wars. You want to solve those problems by looking at addictive computer games? Really? Not even reality TV, or corporate media monopolies - games? ..... I think your high horse is pretty sickly looking tbh.
1. Is dull
2. Promotes laziness
3. Is sedentary
4. Stunts societal progress and growth
5. Limits the mind
6. Promotes violence
The list goes on!
Yet can you believe that people can spend hours of their time on a game of chess? And parents allow their children to play it, which is most definitely irresponsible parenting. I would certainly never allow MY child to play chess when it's clear that it leads to such negative outcomes - nay, downfalls!
Source: https://gizmodo.com/chess-was-once-deemed-a-menace-to-societ...
Who actually claims that? The issue is more that the ROI just isn't there. Remember that porting to a platform incurs additional support costs that need to be payed.
Behold, the actual reason AAA studios can't. Engineering excellence is not something you buy or otherwise invest in. It is your culture. It is who you hire. It is what kind of expectation you set internally for yourself and your peers. That is only marginally related to budget spent on salaries.
If you actually practice engineering excellence, the investment is small. If you don't, the investment is nonsensical.
It's not about "engineering excellence" unless you think exploiting hardware quirks for perf is poor engineering.
Blizzard seems to disagree, as I mentioned in another comment. I’m just not sold on this argument tbh. It makes sense at face value but that’s not enough reason for me. Especially given how many games played on both PC and Mac from 2010-2020 and continue to do so. It’s not the empty desert for gamers it was in the 2000’s.
Maybe you're right, and the technical hurdle is fairly small relative to the money they stand to make from it. Whatever the case is though, Apple's current offerings are not really attractive to developers. People would rather target the APIs they already know than do Apple's dirty work for them. Maybe Apple should take a page out of Sony's book and actually compensate or assist the studios building on top of their technology.
Older games released by Blizzard might have a macOS release, but not the franchise they are pushing the most right now.
After all, Apple went out of their way to not support standardized cross-platform APIs like Vulkan.
The reason I ask is because there are so many different graphics APIs, of which Vulkan is the one that has the lowest rates of direct targeting.
You’re looking at custom platform APIs everywhere but Linux. Windows and Xbox only officially supports DirectX (including console variants here), PlayStation have their own, Switch supports their own plus Vulkan (and most people don’t target Vulkan on there).
Even Metal has significantly more games targeting it due to iOS support. Before people say those are only mobile games, thats a severe underestimation of what games are on mobile.
So every cross platform game needs to support multiple APIs anyway, and even if you count every API , Vulkan is by far in last place.
Edit: I’ll also add that both macOS and Linux had lack of games when their only API was a cross platform one: OpenGL. yes, macs GL is outdated today but it wasn’t always , and just like Vulkan, very few games directly targeted GL anyway.
Windows supports Vulkan just fine, but engine support is lacking. IMO Metal prevents it from being universal in engines such as Unity, so instead a lot of effort goes into DX11 as the lowest-common-denominator to emulate i.e. with shaders. As a result, DX12 AND Vulkan progress is held back IMO because shader performance is necessarily worse when you have multiple layers of inefficient transpiling instead of running SPIR-V everywhere.
To add to that, I don't think most mobile developers are going to Metal directly; a huge number of them make use of it through Unreal or Unity. With Unity, customizing the rendering backend is not really possible without an insane amount of internal knowledge about it (not to mention source access at the read-only level or above).
I think that Vulkan is not particularly behind as an API, it's closer to a usable "almost there" state in terms of developer access. If Unity threw their weight behind improving their shader compilation pipeline and building it around SPIR-V/Vulkan, I think it would rapidly become more universal.
Supporting open APIs does matter, moreso if «everyone» can get onboard, allowing for momentum to grow in service of continued support and development.
EDIT : Ok, I see, more details here : https://news.ycombinator.com/item?id=33742823
----
Also, not every game has to target every platform, especially when we're talking about radically different inputs / outputs !
I'm honestly surprised about Factorio going to the Switch (especially since they supposedly started working on it before the Steam Deck, which I could have seen as having been a «tech demo stepping stone»), considering how much Factorio relies on precise mouse clicking !
Adding a Metal renderer isn't the big deal. As others have said, the deal is that they won't get enough revenue from Apple sales to justify the development and support of Apple hardware.
SGI and microsoft were in api-war between OpenGL and Direct3D (and the boids examples ha!). They started a collaboration to create 'Fahrenheit' (lowlevel) and Fahrenheit (XSG) Extensible Scene Graph. Microsoft was sandbagging, and simply working on Direct3D, bc of opportunity. Bc microsoft was still evil back then bc they had more power.
As far as I always understood, is that OpenGL and whatever was left of Fahrenheit and the coop became the Khronos group.
I have the beta disks still here somewhere
And, AFAIK, there's very little market even for games that don't require a high end GPU on Mac. My guess is the majority people who want to play games on a desktop/laptop just know to get a Windows PC.
If you were a casual gamer, you'd be pretty satisfied on a Mac for that decade.
Things got significantly worse since the 32 bit support was dropped. Most companies aren't interested in going back to update a decades old game to support Mac gamers, so a ton of games that were available suddenly became unavailable. And with the M1, Bootcamp no longer works.
We'll have to see what the future brings. I never would have guessed things would have been as good as they were from 2009-2019, or that things would suddenly reverse as quickly as they did after 2019. So who knows what's around the next corner for Mac gaming.
There are lots of simple games in the App store, some ported from iOS, some indie games built on generic engines (Unity etc). The problem was Mac titles have to be continuously supported. Apple killed compatibility with older 32-bit games with Catalina which decimated my Steam library. I presume that's one of the reasons developers are not exactly flocking to mac en masse...
For example, games like Factorio are incredibly niche and loved by people with builder/engineer mindsets (not necessarily working as engineers). Now you've got to ask yourself whether potential Factorio players are more or less likely to own a Mac, compared to the 3% (cited by another commenter) of all Steam users on Macs.
Also I wonder how this 3% figure was calculated. Is it based on monthly active users? I am a Mac user and I have Steam installed but I don't leave it running all the time because application itself is a dumpster-fire battery hog. I only start it up when I want to play a specific game, then I shut it down. Some games don't even require Steam to be running so I launch them directly without bothering to start Steam. Am I excluded from the monthly active users because I might go months without launching Steam, despite playing games regularly?
That’s not nothing, and arguably if you have a good game, you’ll be one of the shining few on the Max.
Develop your game for x86_32, suddenly Apple drops support and you have to rewrite your entire game again for x86_64.
Develop your game for OpenCL/GL, suddenly Apple drops support and you have to rewrite your entire game again for Metal.
Develop your game for x86_64, suddenly apple drops support and you have to rewrite your entire game again for ARM64.
That's without counting the fact that most games developed nowadays developed using Vulcan or DX12 which has to be rewritten to Metal.
People are installing Windows on their Macs to play games that used to run natively on MacOS. Imagine how bad the backlash if this happened on Windows.
Come to think of it, the fact that Fahrenheit -- next-generation "OpenGL" with a DX base and SGI-provided scene graph API -- failed probably set cross-platform graphics back years if not decades.
Doesn’t valve/the steam deck?
As you might hope, the game is exceptionally well-polished, at least once you get over the initial UI complexity.
it's because multi-billion dollar studios don't hire nimble, competent teams that can turn on a dime.
They higher large numbers of replaceable cogs, use massive engines and other commercial libraries from various vendors, in the hopes of shortening development time without sacrificing production value.
Unfortunately, this only works to some degree, and makes turning on a dime hard. Not to mention that their leadership tend not to be technically informed enough that making such a change seems risky for low benefit.
it's why i do not buy games from such multi-billion dollar studios.
Also having good design vs spaghetti code.
I’d guess the majority of games are a hodge pocket of spaghetti code that’s iterated on until it finally works
It doesn’t exactly take brilliant insight to see that this is a bit of a chicken-and-egg problem, and so them taking this justification to avoid porting (and I think you’re probably correct that this is their reasoning) creates quite a self-fulfilling prophecy.
I think Factorio's code quality allows the developers to make the ports relatively cheap.
Big studios have so many developers that come and go and just work on legacy code that seems to make assumptions about the platform on every level. The cost becomes too high and not worth it.
It's because one is greedy, but because it's bloated.
If I remember correctly the studio behind Mini Metro gave up Linux on their new game because it was too time consuming to run the game and test it. Obviously if you lack tests and need to have manual testers all the time, new platforms won't help you. (I'm making assumptions from the blog posts I read, I might be wrong about the real reasons.)
There are a lot of different GPUs and drivers to account for on Windows, and adding in Linux to that compounds the problem[0] significantly and brings in a paltry number of users, so it is pretty understandable why they don't bother. And the Mac user base that cares about gaming is kind of a joke in terms of size.
[0] Steam Deck being relatively bespoke hardware might help there.
https://www.factorio.com/blog/post/fff-230
Factorio asks different things from GPUs. that today are much more used to accelerate 3D. not 2D graphics :
https://www.factorio.com/blog/post/fff-281
Also :
> Contemporary integrated GPUs are also significantly faster, and while it might not be as much of a challenge to render the game for them, they do share some resources with the CPU - be it the last level of cache, or CPU cooler, so the integrated GPU working hard may cause the CPU to slow down.
> However, the point I wanted to illustrate by this post is how broad a range of GPUs there is. People see a 2D game and expect to be able to play it on essentially anything. If we want to live up to that expectations, we have to impose a lot of limitations on ourselves, because 'anything' also includes a couple orders of magnitude slower GPU than is found in an average gaming computer of today. CPUs got a lot faster in the last decade too, but mostly due to increasing the number of cores and adding wider vector computation units. They didn't get that much faster when executing serial code, which is unfortunately most of Factorio's game code. So if you play the game on a laptop with a Core 2 Duo and GeForce 320M, you'll run into framerate issues due to the weak GPU much sooner than a UPS slowdown due to the old CPU.
https://www.factorio.com/blog/post/fff-333
But, yeah, Factorio is one of those games that don't impose a maximum limit of entities on themselves and are mostly bottlenecked by singlethreaded CPU than GPU performance, like any simulation-like game with lots of entities, each of which can have a gameplay (and not just display) effect on another :
https://www.youtube.com/watch?v=HvI_5S3aITk
(And also, specifically, RAM latency is important for Factorio : https://old.reddit.com/r/factorio/comments/4h647g/factorio_p... )
But that's not what happened here, it wasn't really a choice of location or funds. It was a passion project that went viral.
https://www.indiegogo.com/projects/factorio#/
IIRC sold more than 3 million copies by now ?
P.S.: The evolution of trailers over the years is quite something :
2013 : https://www.youtube.com/watch?v=V1qOCAM9Syw
2014 : https://www.youtube.com/watch?v=9yDZM0diiYc
It makes sense though, there are different circumstances in play.
One day back in ~2013 (or so) as i returned from work, a gamedev studio, i bought my first Android device (some cheap tablet that was sold in a basket) from a mall i often visited after work. Once i arrived at my place and checked it out for a bit, i decided to port my previous (current at the time) 3D game engine on it - downloaded the SDKs, read some docs and tutorials, etc and banged out code until some hours later i got the test game running[0] on the device.
All it took was some spontaneous decision and a few hours of my time at home. That's about it.
However if something similar (porting to a new system) was to happen for the game engine i worked on at work, it'd take much more effort - even after assuming the decision was already made. Different programmers worked on different aspects of the engine that would need to work on it (graphics, audio and low level / system support would be the least) and as the engine relied on middleware we'd need to also ensure the middleware supported whatever we wanted to target, the programmer responsible for that middleware had to take that into account and ensure the legal side was covered too (some middleware consider ports -or basically any executable you make- as separate licenses). We'd also need to have the buildmaster work into integrating the new platform for the automated builds and testing (and perhaps write some basic tests if needed). QA would need to allocate time to test on the new platform, not only for the platform specific functionality but also some tests would need to run on the new platform even for functionality that had nothing to do with it to ensure all new stuff worked as expected (this in turn could cause other ripple effects - for example some new functionality in the engine that worked in a powerful platform might prove too demanding/slow for the new platform - at that point someone would have to decide -meaning meetings, etc- if the new functionality will remain, if it will be altered to work on the new platform -this means some research time will be spent on this- or if it will become an optional feature that somehow is only available to the powerful platforms while not being available on the new one -which would require not only the programmer time to implement this switching but depending on the functionality, potentially also artist/designer time to specify where it will be used- but also depending on what that'd be about, it may require some fallback functionality too -again more programming time).
And that would be for a small-to-midsized AAA game developer at the time with a rather small engine team - in larger teams and companies there'd be way more people and friction involved. All that would translate to a lot of extra time and thus cost.
If you are an indie developer it is very easy to just add support for something, but much harder to do if you are a multi-billion dollar studio. A couple of years after the above i joked i could port my engine (same as the Android one) to Haiku if i felt like it - and then i did that[1]. Meanwhile that wouldn't even pass as a joke in the companies i worked at.
Apple's hardware is unquestionably very good now, and their graphics APIs are actually seeing some uptake. The recent stories about Resident Evil Village especially sound positive.
They quote around 200 UPS average. It's hard to compare to the linked benchmarks because those quote p75 numbers instead of average, but it seems like the results are in the same general ballpark as the Ryzen 9 5950x.
0. https://factoriobox.1au.us/results/cpus?map=4c5f65003d84370f...
I think that the 13700k and 13900k with the same turbo ratio should perform almost the same in gaming workloads. The only difference should be in the 36 MB of LL cache vs. 30 MB. It's a modest difference, but factorio is memory subsystem performance sensitive.
I'll add a benchmark to that page in a few days with a 5.8 GHz clocked 13700k to test the theory.
Rosetta 2 is not emulation, at all, it's AOT, static binary translation, backed by hardware that implements Intel specific behaviour from the latest chips down to the oldest 8080 or something. It's eerily fast.
In fact, it happens that arm64-translated x86_64 running on Apple Silicon can often be faster than x86_64 running on the latest Macs with Intel processors.
So you really have to ask two questions here:
- does the x86_64 Factorio build run faster on Apple Silicon than on a comparable† Intel?
- on Apple Silicon, does the arm64 Factorio build run faster than the x86_64 Factorio?
† whatever that means
So, it is hardware emulation.
FPS: Despite being a 2D sprite game, sometimes it has trouble keeping FPS at 60, at least when running at max graphics and max zoom level with a graphically intensive mod. I would guess it's using OpenGL, and Apple's OpenGL stack isn't great. You can see the article mentioning the M1 Max only hitting 45 FPS in one of the tests, and this is without mods (but with a huge base and presumably a wide zoom level). In my experience, if you adjust the graphics settings appropriately (eg max sprite atlas size and max vram usage, since integrated graphics use unified memory), you can usually keep it at a smooth 60 FPS 99% of the time even in graphically-intensive setups with max or almost-max quality settings.
UPS: Scoring 199 UPS on the flame_sla 10k base puts the M1 Max above any other laptop processor for that benchmark. This matches my experience: the simulation part of the game almost never lags, except for unavoidably heavy operations (eg generating new worlds when playing with mods that do that). See a comparison at:
https://factoriobox.1au.us/results/cpus?map=4c5f65003d84370f...
It puts it above an EPYC 7763! I presume it wasn't using all 64 cores though.
I would not really care if my game library was going through Rosetta 2, as I'd rather take a theoretical performance hit (vs a native arm64 build) than outright be unable to play.
This kind of attitude just isn't conducive for gaming, where people like to build libraries in steam and expect everything to keep working for a long time.
On my PC, I can fire up games from 20 years ago and they work perfectly. Witcher 3, a 7 year old game, is getting an overhaul. I expect no problems in downloading it on steam from my library and playing it seamlessly on my relatively new PC.
https://hypertexthero.com/mac-video-games-for-streaming/
I try to keep it updated and suggestions are always welcome.
Building for ARM is probably not a big challenge if you’re already building for Apple’s x86 toolset.
Metal would be more of a challenge I imagine, but a bridge probably worth crossing all else being equal (or one that you don’t need to cross at all if you’re using something like unreal or unity).
The Mac isn’t a games platform as Apple hasn’t shown much interest in the mainstream gaming market, and I can’t imagine major publishers are eager to fork over a third of their revenue on the App Store for sales they’ll probably pick up elsewhere without more work and cost. Sure theres Epic and Steam on Mac, but they’re ghost towns, and publishers are likely waiting to see what way the EU Digital Markets Act shakes out globally anyway (as other governments are pressured to provide the same freedoms).
There was talk at one point of Apple working on a game console (a more powerful Apple TV) but who’s the market for that?
They’ll not be cost-competitive with Xbox or content-competitive with PlayStation and Nintendo.
At best they’d be likely to produce a similarly powered box with little content and a high price tag in a market already retailing hardware below cost price.
Honestly it doesn't matter. The whole "Macs can't game" has no basis in facts. The goalposts are continually moved.
To give some examples of arguments.
- Not enough games for it. There is actually more games in the Apple store than most other gaming stores. You can also play a lot of iOS games now.
- The majority of games are terrible. The majority of games in other stores are terrible too (sadly).
- It can't play [insert PC game]. Neither can a Nintendo switch but that doesn't mean it can't play games.
- I can play [insert PC game] but doesn't count because it's too old. You can't win on this one.
- It's not a real game unless it uses a GPU. There are countless games out there that don't meet this requirement.
Really the only argument for Macs not being gaming machines is that the majority of buyers do so not to play games on it, but to get stuff done.
Anyone who can afford a Mac is likely to have at least a console and/or PC Gaming rig.
Having access to a lot of mobile games doesn't matter for hardcore gamers.
Your claim means that the Nintendo switch is not a gaming platform.
A AAA game is not denoted by how many platforms it releases on the first day.
Your other comment about mobile games is just another form of gatekeeping. Again the Switch is mobile gaming and would not meet your criteria.
The gaming industry will go where the money is.
The majority of the industry revenue is now on mobile and the lions share of mobile revenue is on iOS and Metal.
I think Apple Silicon Macs will end up benefiting from studios having experience with Metal on iOS in the same way that XBox benefited from studios having experience with Direct3D on Windows.
You have…
- App Store (OSX and many IOS)
- Steam
- Epic Store
- Blizzard Store
- Crossover and Parallels to do some windows games.
- Mame and it’s like exist.
- You even have free games on GitHub.
If you can’t find the games the issue isn’t with the Mac.
I study Computer Engineering, so having a good laptop was important. Prior to this I owned refurbished ThinkPad running Linux which cost me around $500 but had multiple issues with performance and speed, to the point where buying an M1-class machine was almost necessary for me.
When did the rest of the industry drop Direct3D for Vulcan?
Remember, to start, Windows only officially supports DirectX. OpenGL and Vulkan comes from your GPU vendor and Microsoft waives all responsibility for them. Vulkan is, quite literally, a 3rd-party API that can run on Windows - not something Windows supports or endorses.
Xbox does not support Vulkan. DirectX or get rejected.
Only 60% of Android devices support Vulkan. Guess you’ll also need ANGLE or OpenGL for backwards compatibility.
PlayStation does not support Vulkan. Better learn gnm, gnmx, and PSSL.
Nintendo Switch has Vulkan but it is almost unusably slow, on a console that is already not known for speed. Better use NVN if you want anything decent.
iOS does not support Vulkan. Better use Metal.
So… what does Vulkan support, exactly? Windows, Linux, and not enough of Android. If your game only runs on desktop, it’s a good option - but why not target DirectX? Windows, Linux with Proton, and most of the Xbox support all in one. For this reason, I have yet to see a Vulkan game that does not have a DirectX mode.
Blaming macOS for being proprietary is disingenuous in an industry full of Proprietary APIs.
Windows doesn't "support" the DirectX version shipped by your GPU vendor either. The drivers shipped by your GPU vendor, and all the APIs provided by them, are supported by your GPU vendor.
So the real thing we're talking about is hardware vendors. Nvidia and AMD support Vulkan, OpenGL, and DirectX where applicable. Apple only supports Metal. The console vendors have always had weird variant APIs based on the open standards but not identical, except MS where the console is very close to desktop Direct X.
On mobile hardware vendors ubiquitously support OpenGL ES and there's widespread support for Vulkan.
So it's complicated. In the desktop space, as a percentage of market share, Vulkan is extremely widely supported. Same with mobile. Consoles have always been an odd man out.
So Apple, which doesn't sell a console, is absolutely breaking from the pack in the markets they target.
Total addressable market matters here. 100% of Android-based VR headsets support Vulkan. Granted, that's mostly the Quest 2, but it's not the only HMD in town anymore.
Also, a lot lot lot of Android devices are garbage-tier <$100 that you wouldn't want to target anyways because you won't get any sales on them. So the % of Android devices supporting Vulkan may be misleading in the sense that you might be aiming for a segment of devices with much, much higher, if not complete, support for Vulkan.
Metal came out in 2014, Vulkan in 2016.
Android is following with 32-bit deprecation this year, actually. Pixel 7 doesn’t support 32-bit apps.
Digital Foundry did some review of MetalFX in Resident Evil Village[1] and was pretty positive about it. (From DF's findings, MetalFX has some problems with transparent texture, but details preservation/restoration are pretty good.)
At a technical level it seems like they could get more console-like levels of tuning for their platforms. Very few chips to support, only a handful of thermal targets, all chips have a common CPU/GPU architecture, all devices have very fast storage. Conceivably they could field a winning platform for competitive gaming.
My guess is they look at Sony & Microsoft and don't see much value in reshuffling priorities to likely just be #3.
Edit: hajile above convinces me that rather than concerns about spending money to be #3 they probably already are in the top few by gaming revenue and could have lots of reasons for not being more aggressive about taking more share.
That seems to be changing though as there are pretty strong supply chain rumors that they are working on AR/VR headsets (allegedly delayed due to terrible market conditions and some supply chain issues). They've also made pretty big investments into their subscription game service.
I think Apple TV is very overlooked by developers too.
There's a lot of processing power in those things. The weak 2021 model has 15% more GPU power than a docked switch (30% more than an undocked switch). The older 2017 model uses an X processor which should give it even more GPU power (almost double an undocked switch). The latest A15 model (with a major price drop vs the previous generation) has more GPU power than the Xbox One S and isn't so far off from the PS4.
Nintendo Switch 500 GFLOPS (docked) 390 GFLOPS (portable)
Apple TV (A10x) 770 GFLOPS (2017)
Apple TV (A12) 580 GFLOPS (2021)
Apple TV (A15) 1500 GFLOPS (2022)
Playstation 4 1850 GLOPSS
Xbox One S 1400 GFLOPS
Apple TV shipments since 2017 seem to be in the 50-80M units range. Compared to 25M PS5, 17M Series X/S, 111M Switch, and 117M PS4, that's a pretty significant number.1. https://appleinsider.com/articles/21/10/03/apple-earned-more... (15.9*0.69=11B)
2. https://www.microsoft.com/investor/reports/ar21/index.html (Gaming: 15,370)
Because no one nows if the platform will be there or not. Apple's commitment to it has been lackluster. And since there are no dedicated controllers, you'll need controllers from a system... that you probably already own, so why play on Apple TV?
The business case on this was a slam dunk. Other companies running virtual product stores with similar terms would have done the same irrespective of how popular Epic's products were.
Contrary to widespread opinion, Vulkan is not an industry standard. It’s a 3rd-party DirectX alternative for Windows, the best API for Linux, and a curiosity on Android. And that’s literally it, nothing else supports it (except Switch, but it is so slow, almost no games use it, opting for the proprietary NVN).
"Vulkan is not an industry standard" I mean yeah, in the same way Microsoft word is not an standard.
"except Switch, but it is so slow" again that seems to be a lie, doom eternal orks way, way better on it than it would be on similar software on a different API.
This comment has very little to do with Apple Silicon, except to say that I imagine its a faster platform than the Switch, and that Factorio is addictive fun. Here's hoping the promise of the post turns into reality.
I don't mean to diminish the work of porting here, clearly a native version is better. I'm also impressed that the port didn't seem that difficult, the only technical hard thing he mentions is getting a copy of the arm64 libraries to link against. But mostly I'm impressed that the port wasn't entirely necessary because Apple did such a good job on x86 emulation.
[1]: https://cdn.factorio.com/assets/img/blog/fff-371-ups-graph.p...
What's confusing here is he clearly says "After we had a functioning universal binary, we ran benchmarks and conducted manual tests to see what improved. We ran benchmarks on 3 different Apple Silicon machines, using the same compiled release binary and run settings."
So it's a universal binary. Surely it'd run natively on the Mac Studio. Maybe this was a typo?
I went as far as buying a i9-13900 because my previous 8 year old pc could no longer handle my megabase I was working on (11K SPM).
It's funny that this processor gets around 240 UPS and the M1 Max can get to 200 UPS at a fraction of the power budget.
Well worth trying.
Maybe someday I'll retire and be able to spend 100s of hours playing Factorio, without it feeling like I'm just putting in extra hours at work.
- "Factorio feels just like programming ... but without the constraints of having to be reliable, or having to do what other people tell me to" => fun.
- "Factorio feels just like programming .... but I don't get anything out of doing it" => not fun.
Also you’re missing the fact that it already ran under emulation. This is a native port.
Would be great to hear more about this: > reduced the time to set up a clean Mac for Factorio development from a few hours to a few minutes
Beware.
And the Switch one was like - then we optimized it.
Great...
Hmm... He could have tried to optimize his Factorio build to consume less power on the laptop running it... Or, as he did, to optimize the whole game for every ARM Macbook in the world.
Thankfully he chose the latter. Or, wait... I have a Macbook... Damn... Goodbye productivity :)
It's not in depth, but it's 99% of the why. The M1 is just a bigger, reworked A15.
"Write once, run anywhere" :)
Anyway games are going to pre-allocate large arrays and work on them, for cache affinity. That doesn't depend on C++ vs. Java. No need to create a separate object for each item in your factory, but rather a row in the array(s).
And even if you do create a new object for each item, it's better to do that on heavily optimized heap, than manually allocating/deallocating memory in the same thread. You end up writing that heap in C++ anyway.
Clearly someone has not grown the factory large enough.
It seems to me like Factorio is exactly the kind of game that would benefit from a low level language, as it's relatively simple graphically and all the complexity is in the simulation, making it CPU-bound.
Besides, their game is already one of the most cross-platform capable games I've ever seen. There's not a lot of feasible platforms that Go/Java would open up.
Also, choice of programming language isn’t what makes porting games difficult. It’s the platform specific graphics, input, window management, sound, etc. All of which aren’t handled by switching to one of the languages you mentioned.
In this kind of game, no matter how well it runs, there will be someone who has built enough that they're wishing it would run even better.