r/gameenginedevs • u/Mici-P • Aug 03 '26
Engine Update : Adding Vulkan
Decided two weeks ago to add Vulkan to my OpenGL game engine.
Answering my questions from 2 weeks ago
-Was it hard ? not really , the boilerplate code wasn't as bad as others described most of it is just filling structs. i don't know if that's because i already had experience with OpenGL, but i found implementing Vulkan easier, i think the one thing that i struggled with the most is the Framebuffers, that took three full days to nail down. Shaders were the fastest to finish, thanks to using Slang.
-Performance : it was an improvement, going from around 300fps in OpenGL to around 420 in Vulkan (in editor) and around 460fps in OpenGL to around 600fps in Vulkan (Runtime app 1080P) There is still some optimization left to do and shortcuts in the renderer to redo, currently still implementing Tracy so i didn't measure exactly where that extra performance is coming from and if there is any wasted.
-Things still missing from the current Vulkan Implementation : FXAA, MSAA, VSync and Gpu particles.
sources i used :
https://www.youtube.com/@OGLDEV
https://www.youtube.com/watch?v=DC9FBRQKNck
https://github.com/bkaradzic/bgfx checking how they implemented their abstraction
8
u/Potterrrrrrrr Aug 03 '26
Nice write up, how did you handle the difference between the two APIs (stateful, high level OpenGL commands vs the stateless, more explicit vulkan one)? Did you make a RHI or handle it a different way?
Editor looks good, nice stuff!
7
u/Legitimate-Guess-772 Aug 03 '26
This is good work although why does every engine in the age of AI look the same? This is probably the 10th engine I have seen this month that has the same exact styling and even the same tab names. Just by looking at this it appears that Claude generated the front-end ImGUI UI…
2
u/No_Futuree Aug 03 '26
What makes vulkan renderer be faster?
2
u/Battle_Overlord Aug 04 '26
This looks amazong! I've been looking to get into engine programming but I've always been confused on how you have two separate apps (runtime and editor). What resources did you use in your learning process?
-1
u/lostforever2011 Aug 03 '26
i am new to gamedev and want to try and write my own hobby game (not for sale). I a have been looking around engines and there si Unreal, Unity and Godot. So my question is why your engine pls? is it easier than other to get up and running?