News for hackers. Stuff that matters.
Re:Zink (OpenGL on Vulkan) performance better than expected by ryandrake on Wednesday September 09, 2020 @05:03PM (#24425877)
I've always liked this illustration: Code to draw a triangle in 1. OpenGL 1.x, 2. OpenGL 3+, 3 Vulkan [1].

1: http://sol.gfxile.net/temp/hellotriangle.png

Re:Zink (OpenGL on Vulkan) performance better than expected by gw on Wednesday September 09, 2020 @05:13PM (#24425960)
It is pretty wild, though mine wasn't quite as bad. It ended up clocking in at 650 lines. I guess part of that is because nim doesn't have braces... https://github.com/oakes/vulkan_triangle_nim/blob/master/src...
Re:Zink (OpenGL on Vulkan) performance better than expected by monocasa on Wednesday September 09, 2020 @08:09PM (#24427489)
It's decidedly not optimized for hello world style examples, but it's a lot nicer once you have a non trivial codebase, IMO.
Re:Zink (OpenGL on Vulkan) performance better than expected by gameswithgo on Wednesday September 09, 2020 @06:28PM (#24426634)
supposedly code the draw doom 4 is less with vulkan than opengl though
Re:Zink (OpenGL on Vulkan) performance better than expected by Reelin on Thursday September 10, 2020 @02:23AM (#24429459)
> glfwCreateWindow(..., "The spinning triangle that took 1397 lines of code", ...);

I get it, Vulkan is low level, but still.