by bitwize · 4y ago · 0 comments
If you're a gamedev, your engine should abstract all these away. If you're a gamedev, you should be using a commercial engine unless you have a John Carmack on staff.
OpenGL and Vulkan are the worst of all worlds and really only make sense on Linux or Android, which have nothing else.
There is no reason why I should have to use a different APIs to access the exact same graphics hardware depending on whether I'm running Windows, Linux or MacOS.
OpenGL and Vulkan work just fine.
With big fat asterisks for the AMD OpenGL drivers on Windows :-P.
Just recently i read about someone trying Zinc (the OpenGL-on-Vulkan implementation) on AMD hardware under Windows is actually faster than AMD's own drivers (which is on line with what i've observed with my own code between AMD on Windows with AMD's drivers and AMD on Linux with Mesa with the latter being way faster than the former).
Regardless, i've switched back to Linux ever since i could run most of my games without needing Steam and Proton (wine-staging with DXVK and VKD3D-Proton - which works on regular Wine too - seems to work perfectly fine).
It only took 20 years to have RenderDoc catch up to PIX, and still nothing comparable to DirectXTK or MetalKit in sight.
And in regards to game consoles even worse.
> OpenGL already has a patina of “old tech” like C, but it will almost certainly still be in active use for various things a decade from now. [0]
[0]: https://mobile.twitter.com/id_aa_carmack/status/131388553587...
https://github.com/floooh/sokol
It has DX11, Metal, and OpenGL backends (with optional shader compilation tool from GLSL to each target), which is probably all you need to get cross-platform support for all desktop and mobile targets. Rewrote my OpenGL code to this, was a pretty nice experience. The subset of graphical features it exposes seems more than good enough for simple 2D games (probably enough for simple 3D ones also). Can't say more than that though, since I haven't seen a shipped 3D game on Steam using it yet.
Though what we ultimately need for the future is a Metal-like API that runs on all platforms (since from what I've heard from other graphics developers Metal's API design is quite nice and finds the right balance between low-level control and high-level usability). The experimental SDL_gpu development (https://gist.github.com/icculus/f731224bef3906e4c5e8cbed6f98...) strives to achieve this, although it's still in the early stages...
Write your own game engine, it's fun. Other programmers aren't God.
Use OpenGL ES or Vulkan. Windows, Android, and Linux are really the only platforms that matter.
GNU/Linux cannot even get ports from AAA games using Android NDK or Stadia, and has to emulate Windows instead, that is how much it matters.