3 ms·
I'm actually surprised that there isn't more support for a native Linux version of Direct3D. It is by far the better of the two APIs, both in terms of ease of u
by bitwize 14y ago
I'm actually surprised that there isn't more support for a native Linux version of Direct3D. It is by far the better of the two APIs, both in terms of ease of use and more closely conforming to the model used by video hardware itself. Since the future of remote Linux desktops is going to be based on Microsoft's RDP rather than X, it makes sense for the open source community to adopt a better Microsoft technology when it comes along.
- ysangkok 14y agoWhy not just fix OpenGL instead? Actually, it was fixed, but no-one knows how to use OpenGL 4 yet.
- bitwize 14y agoOGL 4 still has too much state machine diddling and extension wrangling. In order to be fixed, it would have to drop a lot of state machine calls and replace them with a comprehensive object model to represent textures, shaders, geometry buffers, etc.; and there would have to be a comprehensive profile of current GPU functionality in the core API with a much faster release cycle. In other words, it would have to become a lot more like Direct3D. "Fixing" OpenGL to bring it into the current era of graphics development usually means making it look more like Direct3D anyway, so why not just go whole hog and adopt Direct3D?
- btian 14y agoBecause Direct3D is not cross-platform. You can't use that on the iOS devices, Android devices, OS X, Linux/Unix systems, PS3/PS4, Wii etc.
- bitwize 14y agoThere's a preliminary free implementation of Direct3D on top of Gallium by Luca Barbieri. Getting the community behind that would be a useful first step towards a native Direct3D rendering stack that could then be ported for use e.g. in iOS apps.
- pjmlp 14y agoThere is NO OpenGL support on games consoles, why the people outside the industry keep on propagating this?! Only the PS3 has some OpenGL API support, but it is so bad most studios use libcgm, the lower level API.
- jiggy2011 14y agoWouldn't providing a solid Linux version of Direct3D rely on cooperation from Microsoft? I know that Wine implements some forms of compatibility, but it's not perfect. Surely the risk would be that you could build DX11 for Linux but then DX12 moves all the goalposts again. Not to mention that there might be legal issues. I wasn't aware that there was movement for RDP on Linux though.
- bitwize 14y agoRDP is Wayland's remoting transport.
- jiggy2011 14y agoFrom the Wayland FAQ: > "This doesn't mean that remote rendering won't be possible with Wayland, it just means that you will have to put a remote rendering server on top of Wayland. One such server could be the X.org server, but other options include an RDP server, a VNC server or somebody could even invent their own new remote rendering model." So looks like it could be an option in wayland, but not the only one.
- bitwize 14y agoMaybe not the only one, but an RDP remoting compositor was just checked into core and the Wayland devs are evangelizing moving to Wayland+RDP over X or VNC, so the rest of the community will likely follow suit. Personal rant: Never mind that X11 does the same sorts of pixmap caching that RDP does to get its speed. Never mind that braindead toolkit developers render into offscreen local rectangles, and then transmit the entire rectangles as bitmaps into X, thus using none of this capability, which is why X is observed to be "slow" and "chatty". The conventional wisdom is that RDP is faster than X, so that's what we'll be using. Meanwhile, Direct3D is quite a bit better than OpenGL, on a number of fronts.
- deleted 14y ago[deleted]
- 14y ago
- btian 14y ago>surprised that there isn't more support for a native Linux version of Direct3D There is no surprise. D3D is proprietary while OpenGL is open standard. >It is by far the better of the two APIs I highly disagree. Do you have any examples? >Linux desktops is going to be based on Microsoft's RDP What?? I've seen plenty of VNC in the wild, but yet to see any RDP
- bitwize 14y agoA remote compositor that uses FreeRDP as its transport protocol was just checked into the Wayland mainline.
- CamperBob2 14y agoI highly disagree. Do you have any examples? OpenGL is a dog's breakfast of an API. It's everything an API shouldn't be -- stateful, verbose, and committee-driven. Just take a look at Valve's .PDF. An OpenGL programmer spends a large part of his/her time trying to maintain a mental model of the underlying driver's state and behavior. And God(s) help you if you step off the path used by popular applications and game engines. You can expect combinatorial bugs out the wazoo, again because the API and driver layers are so stateful. I agree with the grandparent -- it's well past time that a D3D-like API was adopted by other players. I've used OpenGL since the Quake 1 days and I've never understood why so many people sing its praises. The days when D3D was an inferior API are more than a decade behind us.
- dman 14y agoOne reason to sing opengl's praises - cross platform.
- bitwize 14y agoThat's bullshit. In practice different GPU parts support different subsets of OpenGL's shader model, leading to broken graphics depending on the GPU. This is a huge problem in, for example, Android games, where you have to test on just about every device to see what works and what doesn't. OpenGL is cross-platform because it's legacy. It is primarily of interest to outdated CAD software vendors, because that's who's driving the API specs, hence why it took so long for the fixed-function pipeline to finally be dropped. Modern CAD vendors, such as Autodesk, render through a Direct3D pipeline.