Hacker News new | ask | show | jobs
by thefz 355 days ago
Game customers are on Windows because DirectX has been superior to OpenGL - development wise - for what, 30 years?
4 comments

No, they're on Windows because it was the only viable gaming desktop environment during the 90's and 00's. Apple was all but dead and hardware was limited, Linux was in its infancy, Unix vendors didn't care about normal desktop users, etc...

In the early days of 3D gaming, there were studios that used OpenGL over DirectX on Windows. ID Software were the best known example of choosing OpenGL over DirectX.

Of course excellent OpenGL products exist (ID software is the worst example because they were... geniuses), but from the developer point of view, DirectX was the full package.
> OpenGL

OpenGL is legacy tech, just as DirectX

Vulkan is the new shader thing, and has been for at least a decade by now.

DirectX12 is still much better to use than Vulkan.

Natively supports Xbox and PC. Can run on Linux with Proton. The Playstation API functionally resembles DX12.

Vulkan is extension management hell (but has gotten much better, I concede)

Forgive me for being an idiot but i was under the impression dx12 was closer to vulkan architecturally which makes it easier to port to Linux display drivers (and thus why it has)
> has been

I was talking about the past.

No

1) OpenGL is a (now legacy spec) and DirectX is an API on Windows. OpenGL spec is implemented by your GPU driver.

2) DirectX is a collection of multimedia APIs on Windows. OpenGL is just graphics. Direct3D is one of those APIs.

3) Thirdly OpenGL and Direct3D (before version 12) are pretty much the same in they can do. The code is pretty similar IIRC (though it been some time since I've done Direct3D programming).

4) Devs use DirectX because there is a full set of APIs for the target platform. Linux and Mac aren't typically targeted when making a game. Mac and Linux sales have been a very small percentage historically.

Yes, that's the essential reason. Even though that barrier has been lifted with Vulkan matching DX12 in many ways, the accumulated mass moves slowly.
Has there been a game where vulkan performance has been better then dx12? Whenever they are side by side vulkan always performs worse in my experience.
If games run faster on linux with DX12 translated to Vulkan than they do on identical hardware running on Windows 11 then I can't imagine a particularly big performance difference.
There have been cases like that, e.g., RDR2, but I think it mostly comes down to implementation quality.