Author Topic: macOS 10.13 High Sierra - Metal 2 Argument Buffers: 100 times faster than OpenGL  (Read 632 times)



0 Members and 1 Guest are viewing this topic.

JeGX

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1320
    • View Profile
    • Geeks3D.com
Quote
The biggest change performance-wise is argument buffers —when Apple talks about Metal 2 being 100-times faster than OpenGL and 10-times faster than the original Metal, this is the specific thing it’s talking about. Argument buffers are designed to make draw calls more efficient, allowing developers to render more objects onscreen at once. In the original version of Metal, each draw call involved multiple separate API calls, which increased the amount of CPU time spent processing those calls. Argument buffers make it so that more can be stored in Metal’s buffer, reducing the amount of API calls required to draw each object on screen. Not only does this reduce the amount of CPU time spent per draw call, but Apple says it also scales much better. This means that making additional draw calls doesn’t necessarily consume a lot of extra CPU cycles.

This doesn’t magically translate into a frame rate that’s somehow 100-times higher than what you can achieve in OpenGL; argument buffers just present us with a hypothetical scenario that generates a nice big theoretical number that highlights one of the ways in which a low-overhead API is superior to a more conventional API.

While both macOS and iOS still nominally support open, third-party APIs like OpenGL and OpenCL, it’s clear that the company sees Metal as the way forward for graphics and GPU compute on its platforms. Apple’s OpenGL support in macOS and iOS hasn’t changed at all in years, and there are absolutely no signs that Apple plans to support Vulkan.

Source:
https://arstechnica.com/gadgets/2017/09/macos-10-13-high-sierra-the-ars-technica-review/7/#h1

Understanding Argument Buffers:
https://developer.apple.com/documentation/metal/fundamental_components/gpu_resources/understanding_argument_buffers

Metal 2: Accelerating graphics and much more
https://developer.apple.com/metal/
« Last Edit: September 26, 2017, 02:58:47 PM by JeGX »