1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

NVIDIA, Valve Share Lessons In Porting To Linux

Valve

Published on 04 April 2013 02:44 PM EDT
Written by Michael Larabel in Valve
9 Comments

Last month at the Game Developers' Conference (GDC), NVIDIA and Valve shared their experiences and pitfalls in porting the Source Engine to Linux. While talking about Valve's experiences, many of the information can apply to any game developer (or Direct3D/OpenGL application) wishing to come to Linux.

The PDF slides in full from the GDC 2013 presentation by NVIDIA/Valve can be found in full at developer.nvidia.com. To Many Phoronix readers, this information isn't too new. Below are a few of the highlights from these slides.

- Reasons for porting to Linux now that were expressed is that Linux is open, Linux for gaming is growing quickly, it's a stepping stone to mobile (Android), performance reasons, and Steam for Linux. While OpenGL isn't exclusive to Linux, it also offers its own benefits by not being OS-specific, easy (proprietary) driver updates, public specifications, and being controlled by an independent committe (Khronos Group).

- For windowing-related work, NVIDIA/Valve highly recommends using SDL (Simple Direct Layer) for its cross-platform niceness (including mobile targets), tight C implementation, and is used by all of Valve's Linux ports. (It also helps that Valve employs one of the lead SDL programmers.)

- Other porting issues can be file-system differences (namely Linux file-systems being case-sensitive), bad defines/logic with earlier Linux server ports, internationalization issues, multi-monitor being less nice than on windows, raw mouse input differences, and some differences with Linux font handling.

- The tools NVIDIA/Valve recommends for CPU performance analysis at a low-level is perf, vtune, and Telemetry.

- Recommended GPU debugging tools are NVIDIA Nsight, PerfStudio, gDEBugger, CodeXL, and ApiTrace.

- There's many slides going over specific OpenGL extension recommendations and other information for those inexperienced in OpenGL graphics. Some performance tips mentioned were watching out for GPU driver serialization / multi-threaded, writing vendor-specific graphics code in some cases, etc.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. AMD Launches New FX CPUs, Cuts Prices On Existing Processors
  2. Preview: AMD's FX-9590 Eight-Core At Up To 5.0GHz On Linux
  3. Intel Launches The Core i7 5960X, Mighty Powerful Haswell-E CPUs
  4. AMD Radeon R9 290: Gallium3D vs. Catalyst Drivers
Latest Linux Articles
  1. Ondemand vs. Performance CPU Governing For AMD FX CPUs On Linux 3.17
  2. How Intel Graphics On Linux Compare To Open-Source AMD/NVIDIA Drivers
  3. The Fastest NVIDIA GPUs For Open-Source Nouveau With Steam Linux Gaming
  4. Testing For The Latest Linux Kernel Power Regression
Latest Linux News
  1. Marek Lands Radeon Gallium3D HyperZ Improvements
  2. Mozilla Firefox 32 Surfaces With HTML5, Developer Changes
  3. Nouveau X.Org Driver Released With DRI3+Present, Maxwell, GLAMOR
  4. Microsoft & AMD Release C++ AMP Compiler With Linux Support
  5. AMD, Wine & Valve Dominated August For Linux Users
  6. Linux 3.17-rc3 Kernel Released Back On Schedule
  7. Lennart Poettering Talks Up His New Linux Vision That Involves Btrfs
  8. Mesa 10.3 RC2 Arrives Via Its New Release Manager
  9. Ubuntu 14.10's Lack Of X.Org Server 1.16 Gets Blamed On AMD
  10. MSI Motherboard BIOS Updating Remains A Pain For Linux Users
Latest Forum Discussions
  1. Lennart Poettering Talks Up His New Linux Vision That Involves Btrfs
  2. AMD graphics doesn't work with AMD Catalyst drivers
  3. Best Radeon for a Power Mac G5?
  4. The dangers of Linux kernel development
  5. Updated and Optimized Ubuntu Free Graphics Drivers
  6. AMD Releases UVD Video Decode Support For R600 GPUs
  7. SSD seems slow
  8. Is laptop with Intel CPU and AMD dGPU worth buying considering especially AMD Enduro?