News for hackers. Stuff that matters.
Re:The Future of Graphics Programming: The Vulkan API by anton_gogolev on Thursday July 09, 2015 @06:14AM (#9857048)
Timeless Graphics API-related rant: [1]

1: http://programmers.stackexchange.com/a/88055/4994

Re:The Future of Graphics Programming: The Vulkan API by golergka on Friday July 10, 2015 @09:03AM (#9863683)
Timeless rant? It's more like a history lesson, which is the direct opposite of "timeless".

Nevertheless, thanks for the link, this was incredibly informative and well-written.

Re:The Future of Graphics Programming: The Vulkan API by nickpsecurity on Thursday July 09, 2015 @12:27PM (#9858891)
That was an awesome read. Thanks. Sad how many good opportunities are killed off by such foolishness.

EDIT: Or acquisitions...

Re:The Future of Graphics Programming: The Vulkan API by joelthelion on Thursday July 09, 2015 @07:42AM (#9857279)
I think this has a good chance of vastly improving the graphics driver situation on Linux. Providing Vulkan support should be a lot less work than providing a full OpenGL driver, and an OpenGL library can probably be written on top of that.
Re:The Future of Graphics Programming: The Vulkan API by TazeTSchnitzel on Thursday July 09, 2015 @09:12AM (#9857615)
Was thinking the same. With Vulkan providing a low-level API, now someone can write a cross-platform OpenGL implementation, and most of the pain people have suffered from crappy GL implementations and their differences can go away.

Of course, OpenGL may still be bloated and slow, but at least consistently so.

Re:The Future of Graphics Programming: The Vulkan API by Maken on Thursday July 09, 2015 @12:04PM (#9858714)
Mesa is already working on it, and it seems that there will be a Vulkan Intel driver soon after the official release.
Re:The Future of Graphics Programming: The Vulkan API by rawoke083600 on Thursday July 09, 2015 @06:19AM (#9857060)
Was it just me or was reading that LIGHT GRAY text on white background hard ??
Re:The Future of Graphics Programming: The Vulkan API by VinzO on Thursday July 09, 2015 @07:25AM (#9857231)
No, it is not just you. It is hard to read for me too. I highlighted the text to make it easier to read it.
Re:The Future of Graphics Programming: The Vulkan API by artmageddon on Thursday July 09, 2015 @11:12AM (#9858275)
You're not alone. I don't know why they couldn't have made it darker for better contrast.
Re:The Future of Graphics Programming: The Vulkan API by pjmlp on Thursday July 09, 2015 @08:43AM (#9857489)
I wonder how relevant Vulkan is going to be with Apple replacing OpenGL with Metal, Microsoft on DX12, Sony with GNMX, Nintendo with GX2.

Currently I see it only mattering on Android (if Google cares about it) and GNU/Linux.

Re:The Future of Graphics Programming: The Vulkan API by TazeTSchnitzel on Thursday July 09, 2015 @09:13AM (#9857622)
Apple has Metal and MS has DX12, but Apple, Microsoft, Google and others all have Vulkan. Like OpenGL, portability will be its strength.
Re:The Future of Graphics Programming: The Vulkan API by toksaitov on Thursday July 09, 2015 @09:39AM (#9857768)
Citation for Apple? After the last WWDC the situation for any other API on Mac/iOS seems hopeless. And no, that logo on a slide doesn't say much.
Re:The Future of Graphics Programming: The Vulkan API by pjmlp on Thursday July 09, 2015 @10:16AM (#9857936)
I watched all the relevant WWDC Metal talks and they look pretty serious to use it as their only graphics API, with OpenGL left in its current state for backwards compatibility.

Unless Apple proves me wrong by adding Vulkan support, I would say they were on the meetings more to learn how to improve Metal than anything else.

Re:The Future of Graphics Programming: The Vulkan API by glhaynes on Thursday July 09, 2015 @11:50AM (#9858590)
Would it be feasible to implement Vulkan atop Metal as a library without horrible performance? (Keeping in mind that the baseline of Apple's OpenGL is already fairly slow and behind the times. And Apple's customers already have fairly low expectations wrt gaming/etc.)
Re:The Future of Graphics Programming: The Vulkan API by pjmlp on Thursday July 09, 2015 @10:14AM (#9857929)
> Apple, Microsoft, Google and others all have Vulkan

Where?

Re:The Future of Graphics Programming: The Vulkan API by qznc on Thursday July 09, 2015 @04:54AM (#9856822)
Will there be an OpenGL compatibility layer on top of Vulkan? Otherwise, GPU vendors will have to maintain OpenGL for backwards compatibility for a very long time?
Re:The Future of Graphics Programming: The Vulkan API by AshleysBrain on Thursday July 09, 2015 @05:59AM (#9857014)
I think this is an interesting point - in theory I guess it's possible that some kind of library or framework could implement OpenGL on top of Vulkan. It would be a bit like writing a graphics driver in user code, and it could have advantages: Vulkan should have more predictable performance, so OpenGL-on-Vulkan should have more predictable performance too compared to the black box driver with mystery performance pitfalls. It would be far easier to debug and profile for performance issues, and easy to gracefully fall back to normal OpenGL calls where Vulkan isn't supported (just forward the calls to the driver's OpenGL).

Still, I'm not sure who would develop such a framework. It could be a new backend for ANGLE (the framework browsers use to implement OpenGL on top of Direct3D). It might also be too difficult - the whole point of Vulkan is to avoid GPU drivers having to have vast, complex, buggy and slow OpenGL compatibility layers, and OpenGL-on-Vulkan may end up just reimplementing the same thing with the same pitfalls.

Re:The Future of Graphics Programming: The Vulkan API by lmm on Thursday July 09, 2015 @06:15AM (#9857050)
I suspect vendors will start implementing more and more of OpenGL in software (and indeed a lot of it's already in the driver) - cards will keep getting better, but there (hopefully) won't be new OpenGL-only software, so it will be ok if OpenGL doesn't unlock a card's full performance. Look at e.g. modern graphics cards' support for 8-bit textures, or MIDI synthesis on modern sound cards.

Whether that will be in the form of an explicit OpenGL-on-Vulkan library, or just similar things within vendor driver implementations, I can't say. Graphics card drivers are already enormous and contain a lot of backward compatibility code.

Re:The Future of Graphics Programming: The Vulkan API by outworlder on Thursday July 09, 2015 @09:14AM (#9857626)
So, Vulkan on Linux, Direct3D on Windows, Metal on OSX, whatever the consoles use... and WebGL(which is OpenGL-ESish).

Are we back to the Glide days?

Re:The Future of Graphics Programming: The Vulkan API by pjmlp on Thursday July 09, 2015 @02:05PM (#9859631)
We never left them.

Contrary to urban myths, game consoles never used OpenGL as such, only GL like APIs (the PS3 PSGL wasn't really used).

Apple also only adopted OpenGL on MacOS X due to NeXTStep, before it used QuickDraw 3D.

Re:The Future of Graphics Programming: The Vulkan API by T-zex on Thursday July 09, 2015 @12:38PM (#9858979)
> Vulkan API is more low-level than OpenGL (programmer is responsible for memory and threads management for example), what triggered this decision?

Surely you have to do this with OpenGL as well.

Re:The Future of Graphics Programming: The Vulkan API by leetNightshade on Thursday July 09, 2015 @05:38PM (#9860876)
Sure, but with OpenGL's state system you could only safely use it from a single thread. Even if you had multiple threads using it, you still needed a command buffer to safely operate it from one thread processing the commands on the command buffer. Vulkan is capable of being fed commands directly from multiple threads.
Re:The Future of Graphics Programming: The Vulkan API by shmerl on Thursday July 09, 2015 @10:57AM (#9858187)
What is the story with Apple and Sony? Will they support Vulkan?
Re:The Future of Graphics Programming: The Vulkan API by personjerry on Thursday July 09, 2015 @03:07AM (#9856543)
Why is Vulkan needed? Not that I'm familiar with the industry, but I haven't seen a lot of complaints about OpenGL.
Re:The Future of Graphics Programming: The Vulkan API by zamalek on Thursday July 09, 2015 @04:49AM (#9856803)
A really bad analogy (still gets the message across):

If GPU APIs were programming languages OpenGL would be Visual Basic. You're shielded from 90% of the more difficult aspects of accessing the GPU, for a performance cost. Vulkan would be akin to C.

For example: if you use OpenGL the GPU driver will tons of things (costing performance) to make sure that you don't update a texture while the GPU is using it - even if you know what you are doing (e.g. updating a portion of the texture that isn't being used for the render). Vulkan will get right out of your way and let you do what you want: even update a texture while its in use and potentially cause a bug/driver crash or other issues.

The interviewer made this assumption in the second question:

> Vulkan will “replace” OpenGL

Which given my above explanation you will see is probably not true. OpenGL is incredibly valuable because it's so simple - Vulkan and OpenGL simply don't compete with each other, they solve slightly different problems.

Re:The Future of Graphics Programming: The Vulkan API by modeless on Thursday July 09, 2015 @03:37AM (#9856618)
The OpenGL API no longer matches how the hardware works. As a result drivers are huge, unreliable, unpredictable, and slow. Mantle, DirectX 12, and Metal all cut away layers of abstraction and let applications drive the hardware more directly, without drivers getting in the way as much. OpenGL is getting left behind and Vulkan is the response to that.
Re:The Future of Graphics Programming: The Vulkan API by kirushik on Thursday July 09, 2015 @03:37AM (#9856621)
Maybe this? http://www.yosoygames.com.ar/wp/2013/09/what-i-hate-from-ope...

OpenGL is a good concept, but it's real-world usage turned it into an ugly mess with a too deep reliance on the competence of the developer.

Re:The Future of Graphics Programming: The Vulkan API by sklogic on Thursday July 09, 2015 @04:52AM (#9856809)
OpenGL puts a lot of unnecessary burden on a CPU, while it is possible (now, on a modern hardware) to shift a lot more of the things a driver is doing to the GPU side. A new API is needed to reflect this.
Re:The Future of Graphics Programming: The Vulkan API by corysama on Thursday July 09, 2015 @04:25PM (#9860437)
I wrote a long comment on the issues Vulkan addresses a while back https://news.ycombinator.com/item?id=8146533 (can't believe 'a while back' was almost a year ago...)

tldr: OpenGL is great. But, the hardware model it is based on is long outdated. The mantra for the past decade has been "Do your work in huge batches if your want peak performance". But, modern hardware is very capable of getting great perf out of lots of small batches if they are set up correctly. Unfortunately, doing that in OGL requires complicated extensions to work around the old design (AZDO).

That's the big driver. But, there's also a lot of good improvements over OGL that can be made given the past 30 years of hindsight. Not the least of which is a much simpler, more consistent, more reliable, more maintainable driver model (ex: Don't ship a custom, rushed, underfunded compiler in every OS update of every Android device and just point at the spec doc when people complain that they each parse the same code slightly differently from each other.)

Re:The Future of Graphics Programming: The Vulkan API by higherpurpose on Thursday July 09, 2015 @06:43AM (#9857129)
In most DirectX vs OpenGL articles and discussions you see developers hate on OpenGL.
Re:The Future of Graphics Programming: The Vulkan API by nickpsecurity on Thursday July 09, 2015 @12:30PM (#9858918)
This is good news. Simplification will help across the board. Also, open source graphics card and middleware projects might benefit from the simplification of lower layers.
Re:The Future of Graphics Programming: The Vulkan API by hobblin on Thursday July 09, 2015 @03:21AM (#9856576)
Ok... "the industry" thinks that we need a new, completely incompatible, standard for graphics development that is locked down (no mention of open source or free software) and that lower level of abstraction will make it more reliable (that is some major PR-bullshit)...

This can, as I see it, only lead to giving more power to the big companies and shafting the indie developers and linux gamers... So in general, fuck those people!

Re:The Future of Graphics Programming: The Vulkan API by flippinburgers on Thursday July 09, 2015 @04:21AM (#9856728)
The Vulkan SDK will be open source when it is released.

http://www.gdcvault.com/play/1022018/

This is being spearheaded by Valve so the idea that they want to do anything to harm indie developers or linux gamers is simply incorrect.

Re:The Future of Graphics Programming: The Vulkan API by zurn on Thursday July 09, 2015 @04:57AM (#9856832)
This is orthogonal to availability of open source Vulkan GPU drivers though.
Re:The Future of Graphics Programming: The Vulkan API by profsnuggles on Thursday July 09, 2015 @05:08AM (#9856865)
Well Valve paid someone to write an open source Linux Intel Vulkan driver.

    - The day The Khronos Group releases the Vulkan specifications is when they plan to open-source their Intel Linux driver. 
http://www.phoronix.com/scan.php?page=news_item&px=LunarG-Vu...
Re:The Future of Graphics Programming: The Vulkan API by easytiger on Thursday July 09, 2015 @03:32AM (#9856608)
Its the same committe running the OpenGL working group among others such as WebGL.

https://en.wikipedia.org/wiki/Khronos_Group

Re:The Future of Graphics Programming: The Vulkan API by Qwertious on Thursday July 09, 2015 @05:43AM (#9856967)
Vulkan is an open standard, and anyone is free to write their own open-source implementation.

This is exactly the same as OpenGL - OpenGL is an open standard, and has an open-source implementation by the name of [Mesa](http://www.mesa3d.org/).

As other people have said, OpenGL is to Vulkan as C# is to C. For large-scale engine developers, it's quite clear which you'd want to use, under-the-hood.

Besides, just writing the C# runtime environment in C makes an awful lot of sense.

Re:The Future of Graphics Programming: The Vulkan API by justthistime_ on Thursday July 09, 2015 @10:44AM (#9858096)
> OpenGL is an open standard, and has an open-source implementation by the name of [Mesa](http://www.mesa3d.org/).

I think that's kind of misleading. Mesa lags years behind any current OpenGL standard.

Re:The Future of Graphics Programming: The Vulkan API by parley on Thursday July 09, 2015 @04:17AM (#9856719)
I have a feeling that that's the completely wrong way to look at it, although I'm happy to be corrected if I'm wrong.

Today, GPU vendors write big, complex, closed-source drivers offering high-level APIs that as a result are buggier and harder for FOSS-developers to keep up with and make FOSS replacements for.

With Vulkan, GPU vendors should write smaller/simpler drivers, in theory making it easier/cheaper for them to provide good drivers and probably reducing the amount of work needed to produce a replacement FOSS-driver.

The complexity and the high-level APIs is supposed to move out of the driver and into libraries and engines, and many such will be FOSS and probably more portable than the FOSS kernel drivers can be. Please correct me if I'm wrong, though, as I'm not a graphics guy, but I was happy for FOSS when I first read about Vulkan.

Re:The Future of Graphics Programming: The Vulkan API by douche on Thursday July 09, 2015 @05:02AM (#9856848)
OpenGL has a lot of accumulated cruft over the years,and as others have pointed out, it's state-machine abstraction really doesn't match up with how modern graphics cards actually work.
Re:The Future of Graphics Programming: The Vulkan API by kcbanner on Thursday July 09, 2015 @07:51AM (#9857312)
You are completely off base here, do your research.
Re:The Future of Graphics Programming: The Vulkan API by sklogic on Thursday July 09, 2015 @04:53AM (#9856815)
What are you talking about? It'll be a Khronos standard. Do not confuse it with proprietary things like Mantle and Metal.