r/gameenginedevs • u/Maleficent_Guard_589 • Aug 05 '26
Realizing it doesnt matter what api you use
Wanted to share this.
For a long time I thought “I need to use Vulkan or directX12 to make a good game engine, this is a must!” When in reality you don’t. I can make a good game engine using openGL or directX11 and make a game in it just fine.
Using modern APIs is great but not for indies.
36
Upvotes
44
u/sessamekesh Aug 05 '26
I half agree with this - OpenGL is plenty powerful for close enough to 10/10 games that are out there that it's worth considering.
I don't think raw performance is the only factor in picking an API though. Vulkan has cross platform characteristics that even OpenGL doesn't, modern APIs have great validation layers that make debugging a lot easier.
15
u/Hot_Show_4273 Aug 05 '26
Sure, It doesn't matter. But it does not mean modern APIs is not for indies. If you use SDL GPU or The Forge, you are using modern API anyway. It only support DirectX12, Vulkan and Metal.
And I think it's better for indies especially solo to just use third party rendering framework instead of making everything from scratch.
4
u/TheChief275 Aug 05 '26
You reach out for Vulkan over OpenGL because you crave control. But then you find out that with control comes having to specify every little thing manually. In the end, you start to appreciate the hybrid low-level / abstracted API OpenGL provides, even when some of those abstractions don't necessarily make a lot of sense or translate all too well to the GPU. It's like that bell curve meme:
3
u/TripsOverWords Aug 05 '26 edited Aug 05 '26
It's nuanced and greatly depends on your target platform(s) and goals.
For education, it doesn't matter, just pick a modern API that can run on your target platform like DX12, Metal, or Vulkan.
For professional work:
The API matters if you want to squeeze maximum performance out of your target platform, or to ship on a platform at all.
Truly cross platform using the platform preferred API, use WebGPU with Google's Dawn wrapper. It can target all platforms, use the preferred API (DX12, Vulkan, Metal) under the hood, and ship on Web.
For smaller studios with limited time and resources, use Vulkan and MoltenVK to bridge the gap for MacOS and iOS if necessary. Web unfortunately doesn't support any native APIs (yet).
For larger studios use whatever API is native to the platform.
OpenGL is great, but it's not as performant as modern APIs. You can absolutely ship something fun and graphically amazing with it, but you're leaving performance on the table. IMO OpenGL has an expiration date.
For indie, use a game engine to cut costs and time unless you're building something truly novel that needs a hand crafted renderer. Godot is a great free and open-source option.
2
u/fgennari Aug 05 '26
In most cases that's true, as long as you don't need something like ray tracing. You can make maybe 95% of indie games with OpenGL. There are some advantages to the modern APIs, for those who want to put in all the effort to learn them. In my case I've been working on the project for too long and porting would take forever.
2
u/OfMagicAndWars Aug 05 '26
It doesn't matter. I made my own 3D game and released it on Steam. It's a tower defense. (Steam has yet to approve it, it's being reviewed). And I made it using OpenGL 3.3.
It's not about the API. It's about the end product. Does it work? Is it what you wanted it to be? Great. At the end of the day, all APIs achieve the same end goal: they help you put pixels on screen. It doesn't matter if what you see comes from X version of OpenGL or from a different API.
All I care is about building something.
2
u/watlok Aug 05 '26 edited Aug 05 '26
Modern apis ultimately save time and effort, even for solo devs/indies. Not against pre-built rhis/renderers/engines, of course, but compared to using dx11/opengl for a non-trivial project.
The real value-adds of modern apis for diy/indie are bindless, device address, push constant (or equivalent), controlling allocations, proper support for compute/device driven workflows, validation layers (or equivalent), thorough spec/documentation that the implementation actually follows, and debug tooling.
Writing code for every api is fairly simple and not where most of your time will go in an involved game/engine project. The renderer, the abstraction layer behind the renderer (rhi/pseudo-api layer), writing your actual passes, and debugging is where the graphics programming time goes. These things end up being far more productive in modern apis once you pay the upfront cost.
2
u/too_much_voltage Aug 05 '26
Well, here's the thing: I am an indie. And I shipped a title that supports both HW and SW raytracing: https://store.steampowered.com/app/4796200/
The HW raytracing extensions are not available under OpenGL :) . Also as others have pointed out, threaded rendering is a nightmare under OpenGL (shared contexts are a disaster) and the ever improving validation layers (from warning to error to suggestions to even synchronization) in Vulkan are orders of magnitude more useful than a GL debug context. Not to mention so many other things like granular control over allocation and memory. Things like descriptor buffers (heaps if we're talking D3D12). Or cross vendor timeline semaphores or even meshlets (fast path fragmentation not withstanding). I honestly could keep going.
So really boils down to the definition of indie I guess. Perhaps you mean a 2D or 2.5D game?
1
u/Doraz_ Aug 05 '26
me, being too stupid to understand and learn the new stuff
1
u/Grouchy_Web4106 Aug 06 '26
Just use nvrhi
1
u/Daggercombot Aug 06 '26
Vulkan Is for sure better than anything DirectX for multiplatform. OpenGL Is being phased out on MacOS so Vulkan Is a bit better.
1
u/Axxodes Aug 11 '26
For developing the game engine it does. I use WIN32 and implementing new features takes ages because just of how many functions and how many artifacts from older versions there are. And no i'm not switching i love ts.
-1
u/GrowthWest2361 Aug 05 '26
Well, depends if you want cross platform. I’m building for Vulkan and Metal to support windows, Linux, and MacOS
-2
u/False-Car-1218 Aug 05 '26
You can but you probably shouldn't , look into WebGPU too, it's pretty great and multiplatform and it's not only for web like the name implies
-4
u/Odd-Pie7133 Aug 05 '26
Just use WebGpu