Linux gaming is faster because Windows APIs are becoming Linux kernel features
- JoeAltmaier - 299675 sekunder sedanUsed to be a staff member working on an x86 OS called CTOS. I realized if I implemented a couple of traps, we could run command-line DOS programs. So I did. And it worked. Dev tools, text processing, piped commands all worked.
It helped that the DOS executable format was the same as the CTOS format - because we had traded Bill Gates our linker (which produces executables) for his BASIC compiler.
- trashface - 58829 sekunder sedanFeels like there is some real momentum on linux gaming now. I mostly play older games but I've gotten most of them working acceptably in proton on my old system 76 laptop (oryp5, with a nvidia 2060; ~7 years old). The laptop actually has plenty of power for the games I play, but I underclock to keep the heat/fan speeds down (been doing the same on the win10 install on the same system), still getting acceptable framerate in proton for most of the things I do in game, non intense stuff.
Decades ago I ported some games to linux but I do think proton is the correct approach now. One underappreciated advantage is you get most of the mod environment too. In ESO for instance, there is an addon (tamriel trade center) which lets you download item prices, but it requires a windows client exe to do that. That client works on proton.
I also do some modding myself and can cross compile my rust code to windows with cargo xwin, and run it right away in proton, which is fairly amusing to behold.
I actually don't mind windows generally (been a MS user since DOS 5), but Win11 is a game changer, pun intended, and not in a good way.
- neverkn0wsb357 - 43613 sekunder sedanGiven the current momentum, it feels like (to me) the adage of “Windows is for Games” is going by the wayside.
If you look at Steam, and OSs like Bazzite it’s clear the consumer-side is finally shoring up. But that aside, from an economic incentive, game providers (for example Amazon Luna), don’t want to be paying the licenses for running Windows machines for Video Game Streaming on Demand. In fact, at my time there one of the major thing I worked on was figuring out how to stream the games using Linux + Proton + Vulkan so we could use the AMD machines.
Honestly the biggest hurdle was (and probably still is) Anti-Cheat and BattlEye.
At any rate, I’m personally happy to see this trend as I haven’t had a Windows OS since Windows 7.
- Shorel - 24767 sekunder sedanLinux is one of the best Win-API platforms.
It is the absolute best for backwards compatibility: it runs 16 bit apps.
Now it is getting faster for gaming.
And the reverse relation is also true: In Linux, the best backwards compatible stable API is WinAPI.
I can play 30 year old Windows games in Linux. They just work and run better than ever.
For the same project (https://www.descent2.de), I can not even install the dependencies to compile it in a modern distro, as every library is deprecated and removed from the repositories. The precompiled native Linux binaries also can't work.
- 9x39 - 51551 sekunder sedanFinding a way to get the multiplayer studios to get Linux support for their competitive games like Valve does could crack a wedge in the market for mainstream users to get in, particularly in those who don't want to pay the Windows tax (not everyone is willing to experiment or go unlicensed).
I can't prove it, but the Steam Deck has probably torn down a lot of barriers for mainstream use among the crowd that care about the game more than the OS. Getting some of the other games (League, Vanguard, Warzone, BF6, etc.) or whatever is popular in those segments onboard might be the critical mass that justifies fixing all the rough edges that get fixed when a big pile of users are represented.
- Night_Thastus - 57329 sekunder sedanShow me the numbers. Show me an identical gaming PC running Windows 11 and then Linux, and show not just FPS - but things like frametime pacing, latency, etc.
This NTSync stuff is very impressive, but I haven't seen a lot of end-to-end numbers versus Windows. The last comparisons I saw showed pretty much every distribution on the order of 5-30% behind Windows, varying on the game. And Nvidia GPU support was still not great.
I WANT to swap. Please give me cause to do so. I'm sitting here with my finger on the button waiting for it to finally get good enough to make sense.
- zuzululu - 47266 sekunder sedanI support linux gaming btw but I can't help but feel every narrative glosses over that certain games are going to require uncomfortably intrusive anti-cheating systems.
I'm just realizing that I can't play Battlefield 6 and I do wonder what the path is. I don't think it's ever going to be supported on Linux or Mac.
- Animats - 58059 sekunder sedanThere's been real progress. Wine's memory allocator had an architecture with three nested locks. "Realloc" held a futex lock on the memory allocator while recopying the buffer. Multiple threads doing allocation could go into futex congestion, with many threads looping on the futex. This made Vec::push in Rust insanely inefficient. Some of my programs dropped from 60FPS to about 0.5 FPS.
Fixed in Wine 11.0. Thanks to the Wine team.
Not sure if this was related to NTSYNC, but Wine's locking infrastructure definitely got an overhaul.
- chromadon - 52981 sekunder sedanI use Bazzite for all my gaming (Returnal at the minute) and it works unbelievably well. I don’t tinker with any of the proton version. I just press play.
I recently completed Stellar Blade with zero issues.
I don’t even shutdown the machine, I just hit the power to sleep it. Instantly resumes where I left off.
Incredible to see just how far it’s come.
- las_balas_tres - 63353 sekunder sedanI developed for windows before moving to linux. I was surprised to find that was no system call similar to windows WaitForMultipleObjects. Sure you can implement something similar using poll() or using condition variables. but WaitForMultipleObjects seems so much simpler and more versatile
- mifydev - 62065 sekunder sedanI predict that ntsync will eventually evolve into full blown ntoskrnl.ko and there would be virtually no overhead on calling Windows API. You can almost call it a Linux Subsystem for Windows.
- tetris11 - 63898 sekunder sedanI wonder what spanners Windows can throw into the works to slow them down at this point, or if they're so checked out of the Desktop market as they suckle down hard on that Azure teat, that they're more than happy to let Linux eat their lunch
- asdfbank - 18602 sekunder sedanMy linux gaming experience has left me with a wierd irony... I have been stealing windows for the last 25 years and never ever felt like i owed M$ a cent. Now after totally switching to free stuff i suddenly feel (not in a bad way at all) a kind of debt to open source developers for just making cool stuff and putting it out there for me to use and play with and i'm not doing a crime anymore!
- asveikau - 39549 sekunder sedanThis is a fluffy, non-technical article so I googled NTSYNC. It seems like they implement Win32 events, semaphores, mutex and WaitForMultipleObjects.
It's curious that they didn't do this as file descriptors that can be epolled. For example I think you could do semaphores and events with eventfd(2), which always struck me as inspired by those Win32 objects somehow. But maybe this is a simpler purpose built interface.
- londons_explore - 6519 sekunder sedanI was under the impression that most windows games copy and anti cheat protection won't work in Linux. It often has a kernel mode driver to prevent you emulating things, using debuggers etc.
What changed? Do game manufacturers make special versions with toned down anti-cheat specifically to run on the steam box/Linux?
- bradley13 - 57447 sekunder sedanIt's actually been a couple of years since I ran across a game that didn't work well on Linux. At most, I have had to bump the default Proton version.
- pluc - 43813 sekunder sedanIt can't be neglected that Microsoft is alienating its own power users on such a level that they are now considering switching over and bringing all their know-how with them. Linux gaming is also faster because there's more developers interested in making gaming work outside of the Microsoft dominion.
- wnevets - 58444 sekunder sedanIt may finally be the year of the linx desktop. Microsoft actively being hostile to towards Windows users can't last forever.
- anordal - 8919 sekunder sedanAre there 2 things called fsync now?
I had to ask google, because the article fails to explain it. Google says yes, this is something else than the fsync syscall (man 2 fsync).
- tobyhinloopen - 13192 sekunder sedanI'm very happy with my Linux install. After almost 2 decades of trying Linux Desktop and falling back to Windows (and MacOS) I've finally switched to Linux (and MacOS).
The only thing missing is my Adobe stuff. I now run Lightroom in a VM and it's incredibly slow to unusable.
- KingOfCoders - 10864 sekunder sedanHaving migrated from Windows11 to Popos/Nvidia, Minecraft is ~20% slower depending on shaders installed and distant horizons mod. TF2 is also slower but both still fine.
- bsimpson - 61976 sekunder sedanI remember when XDA was the home of Android homebrew hackers working on things like CyanogenMod. It's so strange to see it repurposed as the brand for the same quasi-correct tech article slop that gets parroted between all the big blogs.
Tom's Hardware is a bit before my time, but I remember it being well regarded. I've seen a lot of similar articles under that name lately. I wonder if they've undergone similar fates.
- caycep - 62594 sekunder sedanIf you purpose build a Linux gaming PC, would you lean more towards AMD GPUs over Nvidia?
- FartyMcFarter - 5335 sekunder sedanAs someone without strong feelings on Linux vs Windows (I've used and developed on both about equally): this kind of news, along the way Windows has been changing has me wondering if I should change my primary desktop environment at home to Linux.
In my eyes, Windows used to be the desktop environment that "just works and can run almost everything". Lately it's becoming enshittified, with weird bugs showing up more and more frequently (a memorable one is not being able to launch Notepad from the start menu!!). I think Microsoft is losing its best attributes when it comes to consumer software. Linux may not be perfect but it's looking more and more attractive in comparison, even with its imperfections.
- krige - 20113 sekunder sedanMeanwhile I'm over here, trying to get Age of Wonders 1 to run and completely failing on everything spare a laptop with an old Windows 7 installation. Linux API aping (sorry) is so good that they even exhibit the exact same CTD as Windows 10 with this game.
- embeng4096 - 46606 sekunder sedanI switched to Linux for everything but AAA FPS PVP games last year and have had a great experience so far.
Steam+Proton makes everything I play just work: Helldivers 2, Slay the Spire 2, No Rest For The Wicked, FF7 Remake, Stardew, modded Lethal Company (using r2modman) are the main things I've been playing recently, and all worked out of the box with Proton.
My PS5 controller may have needed me to install one package or something but has been working flawlessly after that.
I keep a Windows drive around for stuff like Apex Legends, Battlefield 6, but I pretty much never boot into Windows anymore except for those.
(I probably sound like a shill at this point, having commented something like this on multiple Linux threads now, but I continue to be impressed at how well Linux performs for gaming these days!)
- stodor89 - 42994 sekunder sedanWin32 - the #1 stable userland ABI for Linux!
- h3t08 - 49786 sekunder sedanIt’s wild to think that the "Year of the Linux Desktop" didn't happen because of a massive marketing push, but because the kernel just slowly absorbed the competition's DNA.
- sylware - 3564 sekunder sedanIf you don't compile the CPU hardware bugs mitigation for linux, which windows has, you'll be mechanically and significantly faster.
1 + 1 = 2
- tantalor - 53972 sekunder sedanhttps://store.steampowered.com/hwsurvey/
How do I actually see the graph?
All I see is stats for April:
- Windows 93.47% +1.14%
- Linux 4.52% -0.81%
- OSX 2.01% -0.34%
- 0dayz - 42247 sekunder sedanWhat excites me is that the kernel gets better not only for windows games but can also get benefits that can be more general purpose, such as what the article writes about: program able to wait for multiple events at once.
It will be interesting to see how native Linux games differ in what fancy under the hood kernel or syscall features they use.
- torginus - 48542 sekunder sedanPersonally I don't know if this is some weird compatibility stuff for Windows apps, or the reason why Windows apps on Linux, whether running via Wine or being ports, rely on these apis because no good alternatives exist.. And if these apis are going to be used/useful for stuff beyond Windows compatibility, for native Linux apps.
Which is a weird thing to think about, and not sure very lovely.
- aftbit - 51139 sekunder sedanLinux gaming is fine unless you want to play something with anti-cheat, which is basically any non-Valve competitive multiplayer title.
- mattrighetti - 44650 sekunder sedanSeeing XDA brought up some good memories. That's the website that really got me into software engineering. I remember trying thousands of different ROMs every month and changing phone every 6 months. My username is still there and seeing the forum still alive and well is awesome!
- leflob - 31331 sekunder sedanI love that I am a part of this with my Steamdeck. Hands down great machine and absolutly incredible what you can do with what I thought to be be quiet limited hardware
- jordigh - 42043 sekunder sedanA great talk at a conference given by Elizabeth Figura, the main developer behind putting NTSYNC into Linux:
- Beijinger - 59288 sekunder sedanI found the computer in the article more interesting than the fact, that gaming is getting faster under Linux.
https://www.kickstarter.com/projects/944362954/bapaco-the-wo...
Interesting, but I wish it was half the size folded...
- melonpan7 - 57095 sekunder sedanI stopped using Windows all together two years ago, and since then Linux gaming has made huge strides. Almost everything is playable now with the exception of Kernel AC games - which I don’t play anyways. The success of the Steam Deck has been an integral part, and Vulkan performance is similar if not equal to DX.
- gigatexal - 5523 sekunder sedanI just want to be able to play the latest COD on linux to ditch my windows partition ... but anti-cheat makes it impossible.
- mhh__ - 41733 sekunder sedanOne canary I have for Linux vs Windows is whether Bloomberg ever support Linux natively on the terminal. You can actually use the API from inside WSL quite easily already.
- wwweston - 62356 sekunder sedanI only hope this eventually reaches enough coverage to support media production. It’s the last commercial area I care about. I’m entirely willing to pay for good work here (and have) but both major commercial desktop OSs are exhibiting significant warning signs of contempt for the users.
- keithnz - 59542 sekunder sedanmy son, and his friends all seem to have switched to https://garudalinux.org/ recently for gaming. Seems to be working out well for them.
- wazulu - 31421 sekunder sedanThat's a great twist! Very few people traded Bill Gates a linker for a compiler!
- philipwhiuk - 7406 sekunder sedanPrevious discussion: https://news.ycombinator.com/item?id=47507150
- Dwedit - 63363 sekunder sedanHeadline says "Windows APIs are becoming Linux kernel features", but only provides two actual examples? It lists NTSYNC, and waiting on multiple events at once.
- gamesbrainiac - 56049 sekunder sedanAnyone move completely over to Linux for gaming? What is the experience like and what are you using?
- ossianericson - 12361 sekunder sedanI remember two decades back when Games for Windows was introduced with Vista, I wrote an article that this was killing gaming. As a PC (master race) gamer back then, I didn't always find it appealing to think that PC games had to have gamepad support etc. To be called and have the Games for Windows logo.
Now seeing Linux just absorbing Windows APIs into the kernel to make gaming work better? That is the opposite direction. This is what PC gaming needs.
I got into PC gaming when I got my Ambra Hurdla SX25 in 1992. Back then it was the fantastic era of first for everything. We got Comanche, Alone in the Dark, Dune, Dig, etc. First of all game types, not just clones of the same concepts.
- andix - 49293 sekunder sedanTime to start betting: Will Windows 12 be based on a Linux kernel? :D
- torusle - 61663 sekunder sedanLinux does not dragged down in performance by the thousands of virus and malware scanners.
- panzi - 48228 sekunder sedanIs NTSYNC used for anything else other than wine/proton?
- tensegrist - 39840 sekunder sedan"how does it feel to be embraced and extended?"
- dundunUp - 9901 sekunder sedanNot really. It’s not “Windows APIs turning into Linux kernel features,” it’s Windows games being translated on Linux way more efficiently than they used to be. Proton stack, Vulkan, Mesa, driver work — that’s where most of the improvement came from.
- shmerl - 52939 sekunder sedanntsync was out already for a while. And it's not necessarily faster than previously available esync and fsync, but it's more correct and clean.
- lowbloodsugar - 58095 sekunder sedanThis is good to hear, but I get 120FPS on Windows in Cyberpunk 2077 and ~70 on Ubuntu. Horizon Zero Dawn is much worse, and quite often drops to seconds-per-frame instead of frames-per-second, if I turn on dynamic scaling. I just have an ssd with windows on it for gaming and boot to that from the bios. Also means my headphones UI works too. But, to be fair, the fact that I _can_ run Cyberpunk and HZD if I want to is pretty impressive.
- everyone - 44919 sekunder sedanThe fundamental difference between Linux and OSes like Windows, macOS, Android, iOS, is that the people making Linux are simply trying to make it good, give it as many features as possible, let the user do as much as possible, make it as easy to use as possible.. Whereas the design of the others is guided by a bunch of weird business-goals and internal politics that constantly change.
That's why Linux keeps getting better while the others keep getting worse.
- jongjong - 51809 sekunder sedanCrazy to think that it took over 35 years for the superior technical fundamentals to matter.
It's true what Max Planck said that science advances one funeral at a time. So does the tech industry as a whole.
- TheRealPomax - 61718 sekunder sedanThis page really does not like playing nice with reader mode, making it near impossible to read unfortunately.
- quxuejun - 31512 sekunder sedanvery nice~
- joaohaas - 42388 sekunder sedan>NTSYNC isn't the first time Linux has gained a new feature specifically because Windows games needed it. A few years back, Linux added a way for software to wait on several events at once, which is something Windows had built in for decades, but Linux didn't.
Lol.
Post doesn't sound explicitly vibewritten, so probably just a non-technical person.
- dmvvilela - 60170 sekunder sedanWhat about macos?
- picsao - 6190 sekunder sedan[dead]
- KolibriFly - 23670 sekunder sedan[dead]
- chanki - 15349 sekunder sedan[flagged]
- JoheyDev888 - 35455 sekunder sedan[flagged]
- d0gwut - 31018 sekunder sedan[dead]
- jocelyner - 30394 sekunder sedan[flagged]
- taintlord22 - 48382 sekunder sedan[dead]
- fleroviumna - 62399 sekunder sedan[dead]
- naikrovek - 43086 sekunder sedanNothing like copying someone else’s shit when you want to avoid thinking of new things for an operating system.
You could be more like Plan9, Linux. You could actually innovate and create new paradigms that make people look at MacOS and Windows and think that they are no longer in the same league.
But you don’t want to do that. You want to play games faster.
Fucking children run the world today. There are no adults keeping track of things making sure that as we go forward that things make sense. There’s no adult supervision in the computing industry anymore. None. It’s all just profit margins calling all the shots. Asinine.
How did it turn out for windows, being “The OS for Games”? Not great, I’d say. Windows is quickly losing that title and will soon become more and more irrelevant for gaming. If you focus on games until you’re “The OS for Games” then decide to innovate on real things that matter outside the home, then you’ll lose that title just like Microsoft is losing it now, and it will happen a lot faster for you than it did Microsoft, because the Linux community is about as organized as an Oklahoma town recently destroyed by a tornado.
Games are fast enough for anyone and there are certainly enough games today that if 5 people lived for 500 years each, there’s not enough time for them collectively to play all games that are available today.
I don’t know what you gamers think the “end game” is for games. Graphics? When are you meant to be happy? When will you stop and say, “ok, we made it”?
Graphics. Pfft. Games do not get better with more realistic graphics, and you know it. Great games are great because they are well thought out and well tested. Great games are not great because the shadows are sharper or because the reflections are more accurate. Some of the shittiest games ever look amazing, and some of the shittiest looking games are S-tier. And you all know it.
Old man mode: off
- akakabrian - 30057 sekunder sedanI made 50 TUI games recently to just test my agent orchestration skills. If pixel graphics are retro, then ASCII is OG. Part of the reason is to make them playable on any device (including Linux), and partially so that agents themselves can play them (to help me practice my RL skills).
- ThrowawayR2 - 312761 sekunder sedan“He who fights with Windows should see to it that he himself does not become Windows. And when you gaze long into ntoskrnl, ntoskrnl also gazes into you.”
Seriously, is it really a victory if you have to adopt the architecture of your sworn enemy?
Nördnytt! 🤓