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

SDL2 Gets Useful Dynamic API Support For Games

Gaming

Published on 08 January 2014 05:59 AM EST
Written by Michael Larabel in Gaming
9 Comments

Ryan Gordon has added dynamic API support to the SDL2 library that's commonly used by cross-platform games. This dynamic API library should prove to be very useful for games and allows gamers to easily override the SDL library used by a particular game.

What the dynamic API support comes down to is allowing gamers (and other consumers of SDL2) to dynamically override the used SDL library by a piece of software, even if the game/application had statically linked in their copy of SDL.

It's quite common for Linux games to statically link in their own copy of SDL2 and ship their own library. Even games that aren't statically linked usually ship their own bundled SDL library for having one less dependency Linux gamers need to track down and potentially have headaches with in meeting the game's dependencies.

The problem with the games commonly relying upon their own Simple DirectMedia Library is that they can be seldom updated, even when major new SDL releases are out that provide bug-fixes or add new features like different display back-ends, e.g. Wayland support. To fix this problem, Ryan Gordon conceived dynamic API support that allows end-users to override the used SDL2 library even if there's a copy that's statically linked against the software. This will also allow for games and software that's no longer maintained to "magically" receive improvements from SDL2 via overriding the library.

Through the SDL_DYNAMIC_API environment variable, a separate SDL2 library can be specified that is hopefully superior to what's used by the game or other software. This will be very useful in the case of SteamOS and Steam in general with it having its own copy of SDL2 that is updated.

For those interested in more details on the SDL2 Dynamic API support check out Ryan Gordon's Google+ post.

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. Intel Xeon E5-1680 v3 & E5-2687W v3 Compared To The Core i7 5960X On Linux
  2. Intel 120GB 530 Series SSD Linux Performance
  3. Btrfs/EXT4/XFS/F2FS RAID 0/1/5/6/10 Linux Benchmarks On Four SSDs
  4. AMD's Windows Catalyst Driver Remains Largely Faster Than Linux Drivers
Latest Linux Articles
  1. Mesa 10.5-devel Brings Some Intel Haswell HD Graphics Changes Over Mesa 10.3
  2. NVIDIA vs. Nouveau Drivers With Linux 3.18 + Mesa 10.4-devel
  3. Is The Open-Source NVIDIA Driver Fast Enough For Steam On Linux Gaming?
  4. Linux 3.18 File-System Performance Minimally Changed But Possible Regressions
Latest Linux News
  1. ArrayFire Accelerated Compute Library Open-Sourced
  2. Amazon's Fire TV Stick: A Nice, Affordable Media Center Option
  3. Google Puts Chrome NPAPI Support On Final Countdown
  4. There's New In-Fighting Over The Future Of Compiz
  5. GTK+ Inspector Gains More Features Ahead Of GNOME 3.16
  6. Clang 3.6 Will Hopefully Have OpenMP Support
  7. A Go Front-End Could Soon Be Landing In LLVM
  8. Linux 3.18-rc6 Released, A Worrisome Regression Remains
  9. HandBrake 0.10 Brings H.265 & VP8 Encoders
  10. Gngr: A New Web Browser Focused On Privacy
Latest Forum Discussions
  1. Hurrican SDL Port
  2. Roadmap to Catalyst 14.10 ?
  3. how to configure module phoromatic ?
  4. PulseAudio 6.0 Is Coming & Other Linux Audio Plans For The Future
  5. Debian Developer Resigns From The Systemd Maintainership Team
  6. Updated and Optimized Ubuntu Free Graphics Drivers
  7. Cant get working Kaveri APU - A10-7850k
  8. Script for Fan Speed Control