Support us on Patreon to keep GamingOnLinux alive. This ensures we have no timed articles and no paywalls. Just good, fresh content! Alternatively, you can donate through Paypal, Flattr and Liberapay!

Cross-platform development library SDL2 2.0.9 is out

Posted by , | Views: 5,231

SDL 2.0.9 has been released today featuring some rather interesting new stuff. It's been a while, with 2.0.8 being released back in March of last year.

What is SDL 2? Well, in their own words "Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D." (and Vulkan since 2.0.6). It's used by many game developers including Valve, Unity, Feral Interactive and no doubt a great many more.

A few random highlights of what's new:

  • SDL_GetDisplayOrientation() to get the current display orientation along with SDL_DISPLAYEVENT for changes to it.
  • Added HIDAPI joystick drivers for more consistent support for Xbox, PS4 and Nintendo Switch Pro controller support across platforms. Valve contributed PS4 and Nintendo Switch Pro controller support.
  • Support for many other popular game controllers
  • Multiple extras to deal with gamepads like SDL_GameControllerMappingForDeviceIndex() to get the mapping for a controller before it's opened
  • Specifically for Linux, there's now a "SDL_LinuxSetThreadPriority()" feature to allow adjusting the thread priority of native threads.

The SDL render batching and some caching, which Ryan Gordon wrote about in this Patreon post didn't make it into this release but it should be in the next one. Ryan told me he didn't want to risk breakage late in the development cycle. That should make the next version of SDL after this really quite exciting.

On top of that, Wayland server-side window decorations on KDE should also be in the following release. You can see a video of that from Ryan Gordon below:

YouTube Thumbnail
YouTube videos require cookies, you must accept their cookies to view. View cookie preferences.
Accept Cookies & Show   Direct Link

You can see a human readable changelog here for 2.0.9 and for the commit log to get down and dirty with more details find that here.

Article taken from GamingOnLinux.com.
15 Likes, Who?
We do often include affiliate links to earn us some pennies. We are currently affiliated with GOG, Humble Store and Paradox Interactive. See more information here.
About the author -
I am the owner of GamingOnLinux. After discovering Linux back in the days of Mandrake in 2003, I constantly came back to check on the progress of Linux until Ubuntu appeared on the scene and it helped me to really love it. You can reach me easily by emailing GamingOnLinux directly.
See more from me
15 comments
Page: 1/2»
  Go to:

kaiman 31 October 2018 at 8:44 pm UTC
"SDL render batching, which Ryan Gordon wrote about in this Patreon post" is not in 2.0.9. As Ryan writes in the very same post:

"This was a lot of work, and I'm thrilled with the end result. This project is sitting in the "SDL-ryan-batching-renderer" branch in revision control; we're about to ship SDL 2.0.9 and it's way too late to drop a change this huge into it, but it will merge thereafter."

Other than that, yay! SDL is likely my second most favourite open source project.
Liam Dawe 31 October 2018 at 8:47 pm UTC
kaiman"SDL render batching, which Ryan Gordon wrote about in this Patreon post" is not in 2.0.9. As Ryan writes in the very same post:

"This was a lot of work, and I'm thrilled with the end result. This project is sitting in the "SDL-ryan-batching-renderer" branch in revision control; we're about to ship SDL 2.0.9 and it's way too late to drop a change this huge into it, but it will merge thereafter."

Other than that, yay! SDL is likely my second most favourite open source project.
Looking over the revisions linked in the article, sure looks like it made it in. Keep in mind he wrote that post almost a month ago and it only released today.

Edit: No it's not, updated


Last edited by Liam Dawe at 31 October 2018 at 8:58 pm UTC
kaiman 31 October 2018 at 9:17 pm UTC
liamdaweEdit: No it's not, updated
My own project uses SDL too, so I'll keep an eye on their repository to see what's upcoming, and I hadn't seen the batching stuff being merged so far. Given how many games depend on SDL these days, there's little room for errors, so I would have been very much surprised if Sam or Ryan pulled a stunt like that :-).

But I'll gladly try it out as soon as it lands. I'm pretty sure it'll be quite beneficial in my case.
Liam Dawe 31 October 2018 at 9:22 pm UTC
Yeah, the commit log was a little confusing since there's a bunch of stuff tagged as "SDL-ryan-batching-renderer". Although they're not actually in the 2.0.9 release just yet.


Last edited by Liam Dawe at 31 October 2018 at 10:03 pm UTC
Purple Library Guy 31 October 2018 at 10:13 pm UTC
I have a question: The descriptions says "via OpenGL and Direct3D". So, does/can/should Vulkan relate to this in any way?
Liam Dawe 31 October 2018 at 10:23 pm UTC
Purple Library GuyI have a question: The descriptions says "via OpenGL and Direct3D". So, does/can/should Vulkan relate to this in any way?
Vulkan support was added in 2.0.6, their description is probably just outdated.
Purple Library Guy 31 October 2018 at 10:39 pm UTC
liamdawe
Purple Library GuyI have a question: The descriptions says "via OpenGL and Direct3D". So, does/can/should Vulkan relate to this in any way?
Vulkan support was added in 2.0.6, their description is probably just outdated.
Excellent! Thank you.
dos 31 October 2018 at 11:48 pm UTC
Damn, I was about to start writing a small patch for SDL2 and hoping it might get into 2.0.9

But there's plenty of important fixes for Wayland released now, so it's still good to see it out
dos 1 November 2018 at 12:09 am UTC
kaiman"SDL render batching, which Ryan Gordon wrote about in this Patreon post" is not in 2.0.9. As Ryan writes in the very same post:

"This was a lot of work, and I'm thrilled with the end result. This project is sitting in the "SDL-ryan-batching-renderer" branch in revision control; we're about to ship SDL 2.0.9 and it's way too late to drop a change this huge into it, but it will merge thereafter."

Other than that, yay! SDL is likely my second most favourite open source project.

Hmm, the KDE protocol for window decorations is also only in that branch.
stan 1 November 2018 at 10:27 am UTC
  • Supporter
  • Top Supporter
It would be great if SDL2 had support for the consoles too. I guess the manufacturers don’t want bits of their oh so secret SDKs leaking out. (Or maybe it’s just too much work and nobody has wanted to do it…)
  Go to:
While you're here, please consider supporting GamingOnLinux on Patreon, Liberapay or Paypal. We have no adverts, no paywalls, no timed exclusive articles. Just good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!

You need to Register and Login to comment, submit articles and more.


Or login with...

Livestreams & Videos
Community Livestreams
See more!
Popular this week
View by Category
Contact
Latest Comments
Latest Forum Posts