Re:The first conformant M1 GPU driver
by nicce on Tuesday August 22, 2023 @06:18PM
(#37229311)
Can someone give concrete examples, why?
Let’s exclude the learning.
[ Parent
| on HN ]
Re:The first conformant M1 GPU driver
by WhereIsTheTruth on Tuesday August 22, 2023 @09:08PM
(#37230677)
Apple have less constraints so their API is more straightforward (less abstractions) and less verbose, Vulkan give you more control, but at the expense of a more convoluted, verbose and complex API, people like to joke about the amount of code one need to write in order to render a triangle with Vulkan
These are still very abstract differences.
Though arguably, going from first triangle to a semi-complex scene is relatively few additional lines, for what it’s worth.
I am not convinced that Vulkan gives you more control. Metal is adaptive in the sense that it can manage some state and configuration for you, but that is strictly opt-out. You still get your manual memory management and low-level event synchronisation.
On the topic of control, Metal has precise control over display intervals and presentation timing (I think Vulkan recently introduced something similar, not sure).