News for hackers. Stuff that matters.
Re:Oculus Rift is Shipping by exelius on Monday March 28, 2016 @12:15PM (#11375125)
Given that Linux gaming is perpetually 3-5 years behind Windows/console gaming, I'd say 3-5 years is probably a good bet for it running in any sort of usable capacity (i.e. more than a tech demo someone reverse engineered to prove it's possible).

Before you down vote; I'm really not being snarky here -- games on Windows typically run 30-40% faster on the same hardware than they do on Linux [1] because there just isn't the market there to make it worth doing the optimization.

[1] http://arstechnica.com/gaming/2015/11/ars-benchmarks-show-si...

Re:Oculus Rift is Shipping by shmerl on Monday March 28, 2016 @12:20PM (#11375163)
> games on Windows typically run 30-40% faster on the same hardware than they do on Linux

Typically many game developers have no clue about Linux programming either. So poor performance doesn't surprise me. When developers know what they are doing, performance is good (example: http://knockoutgames.co).

Also, OpenGL is a major mess for several reasons (barely compatible implementations not complying to the standard and so on).

Now there is Vulkan however, so VR developers should have easier time with it.

Re:Oculus Rift is Shipping by exelius on Monday March 28, 2016 @12:36PM (#11375299)
> Typically many game developers have no clue about Linux programming either. So poor performance doesn't surprise me.

But ultimately, this is a weakness of the Linux platform.

Most games today are cross-platform, so there is a core set of assets and code that has to remain the same across every platform to ensure the game plays the same way. This means that (for right now, anyway - Vulkan was designed to help with this situation) most hardware-specific workarounds/optimizations have to be done in the drivers -- and there are LOTS of them. Game-specific things like "run this shader code, but this model of card has graphical bugs when features x, y and z are active together so stealth disable feature x" or "this card supports this transform algorithm but its output is inconsistent with the version we developed it with, so disable it for this hardware" happen at the driver level. Same thing happens on consoles, but they usually have more direct control over the hardware so console developers have gotten used to this type of driver optimization.

This optimization doesn't happen on Linux (or Mac for that matter), so any games that get ported are just unoptimized.

Re:Oculus Rift is Shipping by geofft on Monday March 28, 2016 @12:55PM (#11375464)
Wouldn't that happen if you're running the proprietary drivers? I thought in general the proprietary drivers are built from the same core codebase across multiple platforms -- once you've gotten past the WGL, GLX, etc. bindings, and you have some system call for getting data to and from the card, the rest of the driver should be basically the same across platforms.

And similarly the games themselves are the same across platforms, apart from their end of the WGL or GLX or whatever bindings. So anything in the driver that says `if (!strcmp(name, "Portal 2"))` is going to be equally applicable regardless of whether it's a Portal 2 compiled for Windows, Mac, or Linux.

It's certainly a weakness of the all-free-software subset of the Linux platform (at least on Nvidia or AMD), but that's not the only option.

Re:Oculus Rift is Shipping by SXX on Monday March 28, 2016 @01:04PM (#11375540)
Overall i'm not agree with statement, but what he was talking about is that Windows drivers have tons of hacks to optimize certain D3D code paths that used by most games and sometimes even fully replace whole shaders with GPU vendor one.
Re:Oculus Rift is Shipping by geofft on Monday March 28, 2016 @05:12PM (#11377428)
Why wouldn't those hacks happen on Linux? I guess the reason is that they're specific to Direct3D and not OpenGL, but for those games that do OpenGL on Windows (which I think is somewhat common), wouldn't the same hacks be present in the Linux OpenGL drivers as the Windows OpenGL ones?
Re:Oculus Rift is Shipping by exelius on Tuesday March 29, 2016 @09:28AM (#11381262)
OpenGL is actually not all that common on Windows anymore -- D3D is more performant, and having a a DX11 compatible card isn't as big of a hurdle these days. Also, the big engines all support both for cross-platform reasons, but most devs will default to D3D on Windows because it's more likely to work consistently across various permutations of hardware/OS/peripherals (IMO this is more because Windows sucks; but Microsoft is well versed in the very specific ways that Windows sucks so they can work around them).

: When I say "Windows sucks", I'm just talking about the complexity inherent in dealing with a consumer operating system designed to run on arbitrary 3rd party hardware. APIs like DirectX/Direct3D provide an abstraction layer that make the complexity more manageable; and they have a benefit in that they are provided by Microsoft.

Re:Oculus Rift is Shipping by SXX on Tuesday March 29, 2016 @07:44AM (#11380773)
Of course they would and that is reason why I don't agree with the statement. Even AMD had profile for Valve games that improved performance on their blob and Nvidia had several different profiles some of which come from Windows drivers: to be exact one for id Software games that was always using OpenGL on Windows.

Of course there is open source drivers that will likely never support game-specific optimizations since for them codebase quality and overall performance is more important than few tricks that make specific games faster.

Re:Oculus Rift is Shipping by warkid on Tuesday March 29, 2016 @11:34AM (#11382201)
They present on Windows because gpu (driver) vendors choose spend tons of their money to make them happen. And they spend their money exactly why? Because they see their profit in Windows pc market.
Re:Oculus Rift is Shipping by shmerl on Tuesday March 29, 2016 @05:56PM (#11385245)
Intel, AMD and Nvidia work on Linux Vulkan support as well. They aren't tied to Windows.
Re:Oculus Rift is Shipping by exelius on Thursday March 31, 2016 @12:10PM (#11398218)
I would argue that Linux Vulkan support from Intel/AMD/NVidia is likely aimed more at Android than traditional Linux desktop distros.

Also, the whole point of Vulkan is to move these card-specific optimizations outside of the core driver while still letting games use kernel space to interface directly with the hardware (and doubtless platform vendors will put an abstraction layer on top of that like Metal on iOS). So the whole situation I'm describing has been a huge pain for a long time, but things are starting to get better.

Re:Oculus Rift is Shipping by shmerl on Monday March 28, 2016 @12:59PM (#11375493)
> But ultimately, this is a weakness of the Linux platform.

No, it's a weakness of developers who do something without knowing what they are doing. As I said, not everyone is like that.

> This optimization doesn't happen on Linux

It now does, with Vulkan.

Re:Oculus Rift is Shipping by maaku on Monday March 28, 2016 @12:46PM (#11375387)
VR is interesting for a lot more than just games.