Feeds

Valve: Games run FASTER on Linux than Windows

It's because Direct3D is slow

The Power of One eBook: Top reasons to choose HP BladeSystem

Not only has Valve Software successfully ported the first-person shooter game Left 4 Dead 2 to Linux, but it actually runs faster on the open source OS than on Windows.

Using high-end hardware, a version of the game running on Ubuntu 12.04 renders at 315fps, Valve's Linux team reports. That's a 16 per cent improvement over the Windows version, which only clocks at 270.6fps on the same configuration.

There was no magic involved. When the Valve developers first ported the game's code base over to Linux, the game crawled along at just 6fps. Only after the code was optimized to take advantage of the Linux kernel and video drivers did it manage playable speeds.

Throughout the porting process, Valve also worked with video card makers to squash bugs and remove bottlenecks, which should help to improve performance of all games running on Linux.

But what the Valve developers didn't expect, they say, was how much of the performance gain was attributable to OpenGL, the cross-platform graphics API that they used to implement the game on Linux.

Normally, the Windows version of Left 4 Dead 2 uses Direct3D, Microsoft's own, proprietary 3D graphics API. But when Valve developers built a new Windows version of the game based on OpenGL code borrowed from the Linux version, that version also ran faster than the Direct3D version, at 305fps.

Valve says its developers are still investigating why the OpenGL version performs better on Windows, and that it will use what it learns to improve performance on the Direct3D version.

The results are bad news for Microsoft, however, which has already taken its share of knocks from Valve co-founder Gabe Newell.

The Linux port of Left 4 Dead 2 is just part of a larger plan to bring Valve's entire Steam gaming platform to the open source OS as a "hedging strategy" against Windows 8, which Newell believes could be "a catastrophe for everyone in the PC space."

In the long run, Newell says, he'd like to get all 2,500 games now available through Steam running on Linux. That's a tall order, but it may just be possible if it turns out that Microsoft's proprietary technologies make for an inferior gaming platform. ®

Boost IT visibility and business value

More from The Register

next story
Apple fanbois SCREAM as update BRICKS their Macbook Airs
Ragegasm spills over as firmware upgrade kills machines
HIDDEN packet sniffer spy tech in MILLIONS of iPhones, iPads – expert
Don't panic though – Apple's backdoor is not wide open to all, guru tells us
Mozilla fixes CRITICAL security holes in Firefox, urges v31 upgrade
Misc memory hazards 'could be exploited' - and guess what, one's a Javascript vuln
NO MORE ALL CAPS and other pleasures of Visual Studio 14
Unpicking a packed preview that breaks down ASP.NET
Captain Kirk sets phaser to SLAUGHTER after trying new Facebook app
William Shatner less-than-impressed by Zuck's celebrity-only app
Cheer up, Nokia fans. It can start making mobes again in 18 months
The real winner of the Nokia sale is *drumroll* ... Nokia
EU dons gloves, pokes Google's deals with Android mobe makers
El Reg cops a squint at investigatory letters
Chrome browser has been DRAINING PC batteries for YEARS
Google is only now fixing ancient, energy-sapping bug
prev story

Whitepapers

Top three mobile application threats
Prevent sensitive data leakage over insecure channels or stolen mobile devices.
Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
Top 8 considerations to enable and simplify mobility
In this whitepaper learn how to successfully add mobile capabilities simply and cost effectively.
Application security programs and practises
Follow a few strategies and your organization can gain the full benefits of open source and the cloud without compromising the security of your applications.
The Essential Guide to IT Transformation
ServiceNow discusses three IT transformations that can help CIO's automate IT services to transform IT and the enterprise.