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!

A developer from Epic Games adds an offscreen video driver to SDL 2

Posted by , | Views: 6,259

Something that came across the desk this morning is a note about Epic Games contributing to the cross-platform development library SDL 2.

What's interesting is that the added code from developer Brandon Schaefer, previously a Canonical (Ubuntu) developer, is for offscreen rendering. From what Schaefer said in the submitted code it's "intended to be used for headless rendering as well as allows for multiple GPUs to be used for headless rendering".

This could have been for Stadia, which streams games to you from Google's powerful Linux servers but possibly not. Stadia uses Vulkan but this SDL 2 code currently works with EGL for OpenGL / ES.

You can see the new code here, currently disabled by default.

Any thoughts as to what they might be up to?

Hat tip to Ben.

Article taken from GamingOnLinux.com.
20 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
mphuZ 25 September 2019 at 9:07 am UTC
QuoteAny thoughts as to what they might be up to?

Nothing for a regular Linux user..
Hopfenmeister 25 September 2019 at 9:15 am UTC
Anybody else being a bit dismayed that playing remotely on Linux is as difficult as it is right now?

Of course I am aware of Steam Play, but I want to be able to log in to my main workstation from my couch and play while my SO is using that machine.
mcphail 25 September 2019 at 9:48 am UTC
This is cool. bschaefer wrote the Mir SDL driver which allowed us to play games on the Ubuntu Phone, so he is a coding hero of mine.

My guess is that Valve are behind this, but we'll see in time I'm sure.

Edit: should've read that he's working for Epic! The best advice is never to take my tips to the bookmaker


Last edited by mcphail on 25 September 2019 at 9:54 am UTC
Mohandevir 25 September 2019 at 1:36 pm UTC
Epic working on a streaming service for mobiles? OpenGL/ES... This is quite weird. Is the Android version of Fortnite built with OpenGL?
Nanobang 25 September 2019 at 2:09 pm UTC
I don't really understand the rest of it, but what I do know is that if Epic's for it, I'm aginnit.
RCL 25 September 2019 at 3:38 pm UTC
The offscreen backend has existed in the SDL2 lib bundled with Unreal Engine since 2016 (see here, although you need a github account that is associated with an Epic account or you'll get a 404). Throughout the years, we have been upstreaming our SDL2 changes (e.g. this, this, or this fix) to improve SDL2 and minimize the differences with the bundled lib.

(P.S. I work for Epic, although here I'm just another Linux gamer speaking privately).
Eike 25 September 2019 at 3:53 pm UTC
RCL(P.S. I work for Epic, although here I'm just another Linux gamer speaking privately).

I'm sure you're already aware of some improvements we would like, so I'll just say "Thank you!" here. Can you comment on the reasons for the implementation the article talks about? (Or even any of said possible improvements?)
RCL 25 September 2019 at 4:02 pm UTC
Thank you for the "thank you" As for the question, the commit message says it all - it helps folks who use UE4 on headless setups (usually without X11 as well), like e.g. this case. As for other changes to SDL2, they mostly stem from the fact that UE4 uses SDL to open and manage multiple windows and as such sometimes runs into edge cases / bugs which a typical game (that only opens a single window, often a fullscreen one) doesn't hit.
Linas 25 September 2019 at 4:19 pm UTC
View PC info
  • Supporter
  • Top Supporter
RCL(P.S. I work for Epic, although here I'm just another Linux gamer speaking privately).
If you meet Tim next to the coffee machine, I have this idea I'd like to share with him.

image
cprn 26 September 2019 at 5:56 pm UTC
I wish Steam did headless rendering for streaming. It's what stopped me from using the Remote Play. Last time I tried, it opened Big Picture and rendered the game window to my PC's main monitor, only then (literally) shared that screen surface with my tablet. Hopefully with this off-screen driver Valve will make it possible to render straight to your other device.
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
  • RPM Flow: „The Curious Expedition“
  • Date:
See more!
Popular this week
View by Category
Contact
Latest Comments
Latest Forum Posts