Software:Mantle (API)

From HandWiki
Short description: Low-overhead rendering API
Mantle
AMD Mantle Logo.png
Developer(s)AMD, DICE[1]
Initial releaseSeptember 25, 2013; 10 years ago (2013-09-25)[2]
Operating systemWindows
Platformx86 and x86-64
SuccessorVulkan
LicenseProprietary, freeware
Websitewww.amd.com/mantle

Mantle was a low-overhead rendering API targeted at 3D video games.[3] AMD originally developed Mantle in cooperation with DICE, starting in 2013.[1] Mantle was designed as an alternative to Direct3D and OpenGL, primarily for use on personal computers, although Mantle supports the GPUs present in the PlayStation 4 and in the Xbox One.[1][4] In 2015, Mantle's public development was suspended and in 2019 completely discontinued, as DirectX 12 and the Mantle-derived Vulkan rose in popularity.[5][6][7][8]

Overview

The draw call improvements of Mantle help alleviate cases where the CPU is the bottleneck. The design goals of Mantle are to allow games and applications to utilize the CPUs and GPUs more efficiently, eliminate CPU bottlenecks by reducing API validation overhead and allowing more effective scaling on multiple CPU cores, provide faster draw routines, and allow greater control over the graphics pipeline by eliminating certain aspects of hardware abstraction inherent to both current prevailing graphics APIs OpenGL and Direct3D.[9]

CPU-bound scenarios

With a basic implementation, Mantle was designed to improve performance in scenarios where the CPU is the limiting factor:

  • Low-overhead validation and processing of API commands;[10][11]
  • Explicit command buffer control;[10]
  • Close to linear performance scaling from reordering command buffers onto multiple CPU cores;[10]
  • Reduced runtime shader compilation overhead;[10]
  • AMD claims that Mantle can generate up to 9 times more draw calls per second than comparable APIs by reducing CPU overhead;[12]
  • Multithreaded parallel CPU rendering support for at least 8 cores.[13]

GPU-bound scenarios

Mantle was also designed to improve situations where high resolutions and "maximum detail" settings are used, although to a somewhat lesser degree, as these settings tax GPU resources in a way that is more difficult to improve at the API level. While Mantle provides some built-in features to improve GPU-bound performance, gains in these cases are largely dependent on how well Mantle features and optimizations are being utilized by the game engine. Some of those features include:[14][15]

  • Reduction of command buffers submissions
  • Explicit control of resource compression, expands and synchronizations
  • Asynchronous DMA queue for data uploads independent from the graphics engine
  • Asynchronous compute queue for overlapping of compute and graphics workloads
  • Data formats optimizations via flexible buffer/image access
  • Advanced Anti-Aliasing features for MSAA/EQAA optimizations[3][10]
  • Native multi-GPU support[3]

Benchmarks

  • Performance superior to Direct3D 11[16]
  • Improved performance in Battlefield 4[17][18][19] and up to 319% faster in the Star Swarm demo in single GPU configuration[20][21][22] in extremely CPU-limited situations.

Other claims

  • Easier to port from Mantle to Direct3D 12 than from Direct3D 11 to Direct3D 12[23]
  • At GDC 14 Oxide Games employee Dan Baker stated that Mantle would address fundamental development challenges that could not be addressed by a retrofit of an existing API. It is hard to optimize for the graphics device driver.[24][25][26]
  • At the AMD Developer Summit (APU) in November 2013 Johan Andersson, technical director of the Frostbite engine at DICE praised Mantle for making development easier and enabling developers to innovate.[27]
  • Mantle targets 100K[28]
  • Monolithic Pipeline[3]
  • Pipeline saving and loading[23]
  • Hybrid Resource Model
  • Generalized Resources
  • Control over resource preparation
  • Dynamic flow control without CPU intervention
  • Direct GPU control
  • Reduced runtime shader compilation overhead
  • Better control over the hardware.[12]
  • "All hardware capabilities are exposed through the API."[12]
  • Reduction of command buffer submissions
  • Data formats optimizations via flexible buffer/image access
  • Explicit control of resource compression, expansion, and synchronization
  • Asynchronous DMA queue for data uploads independent from the graphics engine
  • Asynchronous compute queue for overlapping of compute and graphics workloads
  • New rendering techniques

Support

The Mantle API was only available as part of AMD Catalyst prior to 19.5.1, which was available for Microsoft Windows. AMD promised to support their Mantle API only for their graphics cards and APUs which are based on their Graphics Core Next microarchitecture, but not older products based on the TeraScale microarchitecture.[29] (As of July 2014) the implementation of the Mantle API was available for the following hardware:[citation needed]

  • certain Radeon HD 7000 Series GPUs
  • certain Radeon HD 8000 Series GPUs
  • certain AMD Radeon Rx 200 Series GPUs ("R7" and "R9")
  • all Steamroller-based "Kaveri" APUs: AMD A10-7000 Series and AMD A8-7000 Series
  • all Jaguar-based "Kabini" and "Temash" APUs: AMD E1-2000 Series, E2-3000 Series, A4-1200 Series, A4-1350, A4-5000 Series, A6-1450, A6-5200, Sempron 2650, Sempron 3850, Athlon 5150, Athlon 5350, etc.
  • all Puma-based "Beema" and "Mullins" APUs: E1 Micro-6200T, A4 Micro-6400T, A10 Micro-6700T, E1-6010, E2-6110, A4-6210, A6-6310, etc.

Mantle was originally planned to be released on other platforms than Windows, including Linux, but it never happened.[30][31]

While the API was officially discontinued, Clément Guérin[32] started a Mantle to Vulkan translation layer called GRVK[33] in mid 2020. This allows the API and ultimately the games to live on even without Mantle supporting graphic drivers.

Game engines

  • At GDC 2014, Crytek announced they will support Mantle in their CryEngine.[34]
  • During a GPU 14 Tech Days presentation, an announcement was made that Frostbite 3 would include a Mantle backend.[4][12]
  • The Nitrous game engine from Oxide Games, alongside DirectX 12. Mantle benchmark is still available in a free Star Swarm stress test.[35]
  • Thief is based on a modified Unreal Engine 3 that supported Mantle.
  • LORE, a Civilization engine supported Mantle.
  • Asura, engine used by Sniper Elite III supported Mantle.

Video games

Originally planned

Similar technologies

A set of recent OpenGL 4.4 features, coupled with bindless texturing as an extension, can also substantially reduce driver overhead. This approach, termed by the Khronos Group as "AZDO" (Approaching Zero Driver Overhead) has been shown to achieve substantial performance improvements, approaching those stated for Mantle.[42][43] Nvidia has extended OpenGL with a number of features that further reduce driver overhead.[44]

After details about DirectX 12 were made public, AMD has stated that they fully intend to support DirectX 12, but at the same time they claimed that Mantle "will [still] do some things faster." They have also claimed that due to similarities in the design philosophy of the two APIs, porting games from Mantle to DirectX 12 will be relatively straightforward,[45] and easier than porting from DirectX 11 to 12.[23]

Ultimately, AMD discontinued Mantle as a game API due to the similar aims of DirectX 12 and glNext (later renamed Vulkan).[5][6] AMD donated the Mantle API to the Khronos group, which developed it into the Vulkan API.[46][47][48][49][50][51]

Comments

Recording and FPS overlay software

PC gamers and professionals traditionally used programs such as Fraps and Bandicam to record gameplay, measure game FPS and display FPS overlay, but because Mantle is new, most traditional recording software does not work with new titles while using the new API.

In partnership with AMD, PC gaming community and game recording software maker Raptr have overhauled their client and have since re-branded it as the AMD Gaming Evolved client in conjunction with AMD's Gaming Evolved initiative in the PC gaming space. Out of the partnership, players who install and use the client while in-game can earn points to spend on digital items like games or computer hardware, chat with friends, keep their game library optimized, check for graphics card driver updates, stream their games to Twitch and record gameplay of their own with a built-in GVR, a feature similar to Nvidia Shadowplay software in its own GeForce Experience software that allows users to define a custom buffer length in their game for retroactive game recording with the push of a button so no moment gets missed and users typically do not need expensive hard drive setups to record to. In late 2014, AMD updated the client to support the recording and streaming of titles using Mantle.[52] As of its initial update into the client, the Gaming Evolved software was the only software to officially support the recording and streaming of Mantle enabled games.

Besides Raptr, D3DGear[53] was the only other commercial game recording software that supported Mantle API based games.

See also

  • Direct3D 12 – low-level API from Microsoft
  • Vulkan – low-overhead API from Khronos, developed from Mantle
  • Glide – another low-level API, by the now defunct 3dfx
  • GNM – low-level API of the PlayStation 4
  • GNMX – high-level API of the PlayStation 4
  • Metal – low-level API for Apple iOS and macOS

References

  1. 1.0 1.1 1.2 Altavilla, Dave (2013-09-30). "AMD and DICE To Co-Develop Console Style API For Radeon Graphics". Forbes. https://www.forbes.com/sites/davealtavilla/2013/09/30/amd-and-dice-to-co-develop-console-style-api-for-radeon-graphics/. 
  2. "AMD Radeon R9 and R7 Series Graphics Cards Usher in a New Era of Gaming Realism". https://www.amd.com/en/press-releases/amd-radeon-r9-2013sept25. 
  3. 3.0 3.1 3.2 3.3 "Mantle WhitePaper". AMD. https://www.amd.com/Documents/Mantle_White_Paper.pdf. 
  4. 4.0 4.1 Parrish, Kevin (Sep 25, 2013). "AMD's Mantle API Gives Devs Direct Hardware Control". tomshardware.com. Tom's Hardware. http://www.tomshardware.com/news/amd-mantle-api-gcn-battlefield-4,24418.html. 
  5. 5.0 5.1 Smith, Ryan (2 March 2015). "AMD Lays Out Future of Mantle". Anandtech.com. http://www.anandtech.com/show/9036/amd-lays-out-future-of-mantle-changing-direction-in-face-of-dx12-and-glnext. 
  6. 6.0 6.1 "One of Mantle's Futures: Vulkan | AMD Blogs". http://community.amd.com/community/amd-blogs/amd-gaming/blog/2015/03/03/one-of-mantles-futures-vulkan. 
  7. "AMD's Revolutionary Mantle Graphics API". https://www.amd.com/en-us/innovations/software-technologies/technologies-gaming/mantle. 
  8. "Farewell Mantle… AMD has ended all support for DirectX 12's API inspiration". https://www.pcgamesn.com/amd/discontinuing-mantle-api-support-radeon-drivers. 
  9. "Some Mantle benchmarks by AMD". AMD. 2014-02-01. http://community.amd.com/community/amd-blogs/amd-gaming/blog/2014/02/01/amd-catalyst-141-a-must-have-driver-for-gamers. 
  10. 10.0 10.1 10.2 10.3 10.4 "Mantle 101". AMD. 2014-05-28. http://community.amd.com/community/amd-blogs/amd-gaming/blog/2014/05/28/mantle-101. 
  11. "AMD Gaming". 2014-02-01. http://community.amd.com/community/amd-blogs/amd-gaming/blog/2014/02/01/amd-catalyst-141-a-must-have-driver-for-gamers#sthash.4iDkXHGJ.dpuf. 
  12. 12.0 12.1 12.2 12.3 "AMD Livestream at GPU 14 Tech Days". 2013. http://www.livestream.com/amdlivestream?t=637320. 
  13. Smith, Ryan (Sep 26, 2013). "Understanding AMD's Mantle: A Low-Level Graphics API For GCN". anandtech.com. AnandTech. http://www.anandtech.com/show/7371/understanding-amds-mantle-a-lowlevel-graphics-api-for-gcn. 
  14. "The Next Generation of Graphics APIs". Oxide Games. 2014-05-21. http://www.oxidegames.com/2014/05/21/next-generation-graphics-apis/. 
  15. "The Race to the Metal". Josh Barczak. 2014-05-23. http://www.joshbarczak.com/blog/?p=99. 
  16. "The performance of Mantle". AMD. 2014-05-28. http://community.amd.com/community/amd-blogs/amd-gaming/blog/2014/05/28/the-performance-of-mantle. 
  17. "AMD Mantle API Performance Analysis With Radeon R7 260X, R9 270X, R9 280X". http://wccftech.com/amd-mantle-api-performance-preview-radeon-r7-260x-radeon-r9-270x-radeon-r9-280x/. 
  18. "Tłumacz Google". https://translate.google.com/translate?act=url&depth=1&hl=pl&ie=UTF8&prev=_t&rurl=translate.google.pl&sl=auto&tl=en&u=http://pclab.pl/art55953-3.html. 
  19. "AMD claim performance boosts of up to 45% using Mantle over DirectX | PCGamesN". http://www.pcgamesn.com/battlefield/amd-claim-performance-boosts-45-using-mantle-over-directx. 
  20. "AMD Mantle Powered Flagship Nitrous Engine "Star Swarm Benchmark" Released on Steam". http://wccftech.com/amd-mantle-powered-nitrous-engine-star-swarm-benchmark-released-steam/. 
  21. "Page 2 - AMD’s Mantle benchmarked: The biggest innovation in gaming since DirectX 9 | ExtremeTech". http://www.extremetech.com/gaming/175881-amd-mantle-benchmarked-the-biggest-innovation-in-gaming-since-directx-9/2. 
  22. "AMD releases Mantle, shares performance numbers". http://www.fudzilla.com/home/item/33803-amd-releases-mantle-shares-performance-numbers. 
  23. 23.0 23.1 23.2 "Mantle: the start of a low-overhead future". AMD. 2014-05-28. http://community.amd.com/community/amd-blogs/amd-gaming/blog/2014/05/28/mantle-the-start-of-low-overhead-future. 
  24. "Combining Efficient Engine Design with a modern API". 2014-03-20. http://www.slideshare.net/DevCentralAMD/mantle-and-nitrous-combining-efficient-engine-design-with-a-modern-api-amd-at-gdc14. 
  25. "Mantle in the words of game developers". AMD. 2014-05-28. http://community.amd.com/community/amd-blogs/amd-gaming/blog/2014/05/28/mantle-in-the-words-of-game-developers. 
  26. "How Mantle changes the game". 2013-11-21. http://amd-dev.wpengine.netdna-cdn.com/apu/wp-content/uploads/sites/3/2013/11/GS-4145_Dan_Baker.pdf. 
  27. "Mantle for Developers (by Johan Andersson, DICE)". 2013-11-21. http://www.slideshare.net/DevCentralAMD/keynote-johan-andersson. 
  28. "Empowering 3D Graphics Innovation". 2013-11-21. http://www.slideshare.net/DevCentralAMD/gs-4112-guennadiriguerfinal-28494024. 
  29. Smith, Ryan (26 September 2013). "Understanding AMD's Mantle". Anandtech.com. http://www.anandtech.com/show/7371/understanding-amds-mantle-a-lowlevel-graphics-api-for-gcn. 
  30. "AMD wants to improve gaming in Linux and Steam boxes with its Mantle tools". 2014-06-18. http://www.pcworld.com/article/2364760/amd-wants-to-improve-gaming-in-linux-and-steam-boxes-with-its-mantle-tools.html. 
  31. "Linux support isn't ruled out completely". Phoronix. 2014-05-31. http://www.phoronix.com/scan.php?page=news_item&px=MTY2NDA. 
  32. "libcg on Github". https://github.com/libcg. 
  33. "GRVK on GitHub". https://github.com/libcg/grvk. 
  34. "AMD Mantle support is headed to another game engine". http://www.techradar.com/news/consoles/gaming/amd-mantle-support-is-headed-to-another-game-engine-1235383. 
  35. "Star Swarm Stress Test on Steam". https://store.steampowered.com/app/267130/Star_Swarm_Stress_Test/. 
  36. "Mantle Renderer now available in Battlefield 4". https://battlelog.battlefield.com/bf4/news/view/bf4-mantle-live/. 
  37. "Mantle Takes to the Stars with Sid Meier's Civilization: Beyond Earth". https://www.amd.com/en-us/press-releases/Pages/mantle-beyond-earth-2014apr14.aspx. 
  38. "Sniper Elite 3 to tap AMD's Mantle API". https://techreport.com/news/25682/sniper-elite-3-to-tap-amd-mantle-api. 
  39. "AMD's Revolutionary Mantle Graphics API Adopted by Industry Leading Game Developers Cloud Imperium, Eidos-Montréal and Oxide". AMD. NYSE: AMD: AMD. November 4, 2013. https://www.amd.com/us/press-releases/Pages/amds-revolutionary-mantle-2013nov4.aspx. 
  40. "Star Citizen to Include Mantle Support". Transmission. Cloud Imperium Games. 5 November 2013. https://robertsspaceindustries.com/comm-link/transmission/13362-Star-Citizen-To-Include-Mantle-Support. 
  41. "Mantle to power 15 Frostbite games; DICE calls for multi-vendor support - The Tech Report". https://techreport.com/news/25651/mantle-to-power-15-frostbite-games-dice-calls-for-multi-vendor-support. 
  42. "OpenGL Efficiency: AZDO". Khronos Group. March 2014. https://www.khronos.org/assets/uploads/developers/library/2014-gdc/Khronos-OpenGL-Efficiency-GDC-Mar14.pdf. 
  43. "Beyond Porting: How Modern OpenGL Can Radically Reduce Driver Overhead". YouTube. 2014-02-11. https://www.youtube.com/watch?v=-bCeNzgiJ8I. 
  44. "OpenGL NVIDIA Command-List: Approaching Zero Driver Overhead". 2014-12-04. http://www.slideshare.net/tlorach/opengl-nvidia-commandlistapproaching-zerodriveroverhead. 
  45. "A closer look at DirectX 12". The Tech Report. 2014-03-30. http://techreport.com/review/26239/a-closer-look-at-directx-12/3. 
  46. "More on Vulkan and SPIR - V: The future of high-performance graphics". Khronos Group. p. 10. https://www.khronos.org/assets/uploads/developers/library/2015-gdc/Khronos-Vulkan-GDC_Mar15.pdf. "Thanks AMD!" 
  47. Mah Ung, Gordon (6 March 2015). "Mantle is a Vulkan: AMD's dead graphics API rises from the ashes in OpenGL's successor". PCWorld. http://www.pcworld.com/article/2894036/mantle-is-a-vulkan-amds-dead-graphics-api-rises-from-the-ashes-as-opengls-successor.html. 
  48. "AMD Gaming: One of Mantle's Futures: Vulkan | AMD Blogs". Community.amd.com. http://community.amd.com/community/amd-blogs/amd-gaming/blog/2015/03/03/one-of-mantles-futures-vulkan. 
  49. Hruska, Joel (4 March 2015). "Not dead yet: AMD's Mantle powers new Vulkan API, VR efforts". ExtremeTech. http://www.extremetech.com/extreme/200286-not-dead-yet-amds-mantle-powers-new-vulkan-api-vr-efforts. 
  50. "AMD's Mantle Lives On In Vulkan - Lays The Foundation For The Next OpenGL". Wccftech.com. 2014-06-20. http://wccftech.com/mantle-lives-vulkan-wip/. 
  51. Kirsch, Nathan (2015-03-03). "Is AMD Mantle Dead As We Have Known It? Vulcan API Uses Mantle Technology for OpenGL". Legit Reviews. http://www.legitreviews.com/amd-mantle-dead-known-vulcan-api-uses-mantle-technology-opengl_159339. 
  52. "AMD Gaming Evolved Now Supports Mantle". http://blog.raptr.com/client_release_notes/. 
  53. "D3DGear Mantle Recording Software". http://www.d3dgear.com/. 

External links