Facebook   Twitter    e-mail newsletter    YouTube    RSS Feed    Android App    iPhone and iPad App     BlackBerry App    


Page 1 of 2 1 2 LastLast
Results 1 to 15 of 24

Thread: Valve gets L4D2 running faster on Linux than Windows

  1. #1
    Super Grandmaster ponder's Avatar
    Join Date
    Jan 2005
    Location
    KZN Dolphin Coast
    Posts
    33,056

    Default Valve gets L4D2 running faster on Linux than Windows

    http://blogs.valvesoftware.com/linux/

    Faster Zombies!
    August 1, 2012

    One factor in creating a good gaming experience is throughput. This post discusses some of what we’ve learned about the performance of our games running on Linux.
    As any software developer can tell you, performance is a complicated issue. In the interests of simplicity, we’ll concern ourselves with the following high-end configuration:

    Hardware

    Intel Core i7 3930k
    NVIDIA GeForce GTX 680
    32 GB RAM

    Software

    Windows 7 Service Pack 1 64-bit
    Left 4 Dead 2
    Ubuntu 12.04 32-bit

    We are using a 32-bit version of Linux temporarily and will run on 64-bit Linux later.
    Running Left 4 Dead 2 on Windows 7 with Direct3D drivers, we get 270.6 FPS as a baseline. The data is generated from an internal test case.

    When we started with Linux, the initial version we got up and running was at 6 FPS. This is typical of an initial successful port to a new platform.
    Performance improvements fall into several categories:

    Modifying our game to work better with the kernel
    Modifying our game to work better with OpenGL
    Optimizing the graphics driver

    An example of the first category would be changing our memory allocator to use more appropriate Linux functions. This was achieved by implementing the Source engine small block heap to work under Linux. The second category would include reducing overhead in calling OpenGL, and extending our renderer with new interfaces for better encapsulation of OpenGL and Direct3D.
    The third category is especially interesting because it involves working with hardware manufacturers to identify issues in their drivers and, as a result, improving the public driver which benefits all games. Identifying driver stalls and adding multithreading support in the driver are two examples of changes that were the result of this teamwork.
    After this work, Left 4 Dead 2 is running at 315 FPS on Linux. That the Linux version runs faster than the Windows version (270.6) seems a little counter-intuitive, given the greater amount of time we have spent on the Windows version. However, it does speak to the underlying efficiency of the kernel and OpenGL. Interestingly, in the process of working with hardware vendors we also sped up the OpenGL implementation on Windows. Left 4 Dead 2 is now running at 303.4 FPS with that configuration.

    OpenGL versus Direct3D on Windows 7

    This experience lead to the question: why does an OpenGL version of our game run faster than Direct3D on Windows 7? It appears that it’s not related to multitasking overhead. We have been doing some fairly close analysis and it comes down to a few additional microseconds overhead per batch in Direct3D which does not affect OpenGL on Windows. Now that we know the hardware is capable of more performance, we will go back and figure out how to mitigate this effect under Direct3D.

    Working with hardware vendors

    We’ve been working with NVIDIA, AMD, and Intel to improve graphic driver performance on Linux. They have all been great to work with and have been very committed to having engineers on-site working with our engineers, carefully analyzing the data we see. We have had very rapid turnaround on any bugs we find and it has been invaluable to have people who understand the game, the renderer, the driver, and the hardware working alongside us when attacking these performance issues.
    This is a great example of the benefits that are the result of close coordination between software and hardware developers and should provide value to the Linux community at large
    entia non sunt multiplicanda praeter necessitatem

  2. #2
    Super Grandmaster ponder's Avatar
    Join Date
    Jan 2005
    Location
    KZN Dolphin Coast
    Posts
    33,056
    entia non sunt multiplicanda praeter necessitatem

  3. #3

    Default

    Modifying our game to work better with the kernel
    Modifying our game to work better with OpenGL
    Optimizing the graphics driver
    this is some bluff against MS that will fail. I say that because I do not believe that Valve would release a game which would mean that they have to potentially open their software.

    i like that it shows linux's efficiency
    Do NOT construe anything I type as advice

  4. #4

    Default

    No, they do not have the open their software.

  5. #5

    Default

    Things are looking good... I seriously want a Linux gaming rig.
    What Would Good Guy Lucifer Do?

  6. #6
    Senior Member
    Join Date
    Feb 2006
    Location
    Brackenfell
    Posts
    138

    Default

    Quote Originally Posted by Aqua_lung View Post
    Things are looking good... I seriously want a Linux gaming rig.
    Have to agree, it is about time, and i guess with the comments I see from win8 now it is the best time to stand up with a alternative.

  7. #7
    Super Grandmaster cerebus's Avatar
    Join Date
    Nov 2007
    Location
    Somerset West
    Posts
    14,687

    Default

    This is interesting; I wonder what will happen with Windows as a gaming platform going forwards. It's already under threat from tablets, but gaming is one of the reasons it's still relevant. If Valve gets Steam onto Linux though it'll be a major coup.

    Problem is, OGL might be faster than DX but it's also quite far behind it in terms of features from what I can gather, esp with DX11.
    Last edited by cerebus; 10-08-2012 at 10:40 AM.
    You were watching until a stone was cut out without hands

  8. #8

    Default

    Can Gabell and his team just commit to date already?! Talk, talk, talk... To be fair, the whole Steam on Linux thing has been discussed as early as November 2008 (http://www.phoronix.com/scan.php?pag...irmation&num=1).

    I just feel like the Linux community is getting jerked around some more.

    Now is the time for Linux gaming. C'mon dragonboy - throw some weight (and moola) behind the initiative!

  9. #9
    Super Grandmaster cbrunsdonza's Avatar
    Join Date
    Jun 2008
    Location
    Somerset West
    Posts
    9,849

    Default

    Quote Originally Posted by cerebus View Post
    This is interesting; I wonder what will happen with Windows as a gaming platform going forwards. It's already under threat from tablets, but gaming is one of the reasons it's still relevant. If Valve gets Steam onto Linux though it'll be a major coup.

    Problem is, OGL might be faster than DX but it's also quite far behind it in terms of features from what I can gather, esp with DX11.
    It will open up the market for better consoles. I bought Enemy Territory Quake Wars as it supported Linux and the performance difference was amazing compared to playing it on Windows.

    Personally I believe the hard core gamer will use Windows OS with his bleeding edge hardware, but the average joe is using older hardware that is well supported under Linux.
    Overflow error in /dev/null

  10. #10

    Default

    Quote Originally Posted by cbrunsdonza View Post

    Personally I believe the hard core gamer will use Windows OS with his bleeding edge hardware, but the average joe is using older hardware that is well supported under Linux.
    I think it will go the opposite way. MS are pushing the closed ecosystem concept even further with Win8.

    Linux will become tweakers paradise. Once the motivation exists to put solid effort into openGL, DirectX is going to get a hiding.

  11. #11
    Super Grandmaster ponder's Avatar
    Join Date
    Jan 2005
    Location
    KZN Dolphin Coast
    Posts
    33,056

    Default

    Quote Originally Posted by cerebus View Post
    Problem is, OGL might be faster than DX but it's also quite far behind it in terms of features from what I can gather, esp with DX11.
    Biggest issue from my understanding is the API. DX also handles everything, video, sound, input. OpenGL only handles video.
    entia non sunt multiplicanda praeter necessitatem

  12. #12

    Default

    blah.. blah.. blah... whatever...

    Steam on linux is going to rock, that's what I'm hoping for. Mac gaming is growing which shows that OpenGL is a solid platform, once linux becomes viable and profitable it will take off, then valve will release it's own console based on Linux.
    What Would Good Guy Lucifer Do?

  13. #13

    Default

    Just when I started to like Windows 8.....Now im going to have to get linux on my main laptop?

    Why is valve leaving windows for linux?

  14. #14

    Default

    Quote Originally Posted by Mr.CookieMonster View Post
    Just when I started to like Windows 8.....Now im going to have to get linux on my main laptop?

    Why is valve leaving windows for linux?
    Microsoft wants to launch it's own digital distribution platform (compete with Steam).

    Might explain why Valve is looking to push towards more platforms. You can already play TF2 on Mac, so they have some experience with it.

  15. #15

    Default

    Quote Originally Posted by Mr.CookieMonster View Post
    Just when I started to like Windows 8.....Now im going to have to get linux on my main laptop?

    Why is valve leaving windows for linux?
    It won't be any time soon. Gabe is pissy because he's afraid MS replace Steam with their gaming marketplace. Seems the Win8 marketplace is now tightly integrated with the Win8 ecosystem.

    I smell another antitrust suit coming if Gabe is right.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Replies: 25
    Last Post: 31-07-2012, 10:26 PM
  2. Running Windows applications on Linux
    By Tomo3000 in forum Broadband and IT News
    Replies: 28
    Last Post: 17-03-2010, 08:22 PM
  3. Valve possibly porting games to Linux?
    By Kasyx in forum Linux
    Replies: 10
    Last Post: 20-04-2008, 06:41 PM
  4. Wine and QEMU --> running Windows proograms in Linux
    By AirWolf in forum Software and Web Development
    Replies: 21
    Last Post: 10-09-2007, 08:34 PM
  5. Virus threatens PCs running Linux or Windows
    By rpm in forum Broadband and IT News
    Replies: 8
    Last Post: 19-04-2006, 02:55 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •