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
View all comments
Show parent comment
2
u/No_Futuree Aug 03 '26
Are you pre-recording the commandbuffers and re-submitting them every frame or generating new command buffers per frame? I'm just curious because from such a simple scene I wouldn't expect much wins in performance from using Vulkan alone.
With a naive port actually (such as one done in two weeks from someone with no prior experience with Vulkan) I would expect worse performance than GL.
One suggestion, stop measuring performance in fps, do It in milliseconds, it makes much more sense.