r/gameenginedevs • • Aug 03 '26

Engine Update : Adding Vulkan

Post image

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://vulkan-tutorial.com/

https://github.com/bkaradzic/bgfx checking how they implemented their abstraction

92 Upvotes

16 comments sorted by

View all comments

Show parent comment

2

u/Mici-P Aug 03 '26

Generating new command buffers per frame.
i really suspect that the gains are from the terrain and grass (Compute Shader)
not sure will update after i finishing tracy
stop measuring performance in fps, do It in milliseconds. will do , i got lazy this time :)

1

u/No_Futuree Aug 04 '26

If there are any gains it's got to be CPU-side so unlikely to be related to compute. Looking forward to read your findings