Graphics APIs and Game Engines Comparison

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

This page compares the six libraries documented in this section: OpenGL 4.6 (with OpenGL ES 3.2), WebGL 2.0 (with three.js and WebGPU as context), Metal 4, Vulkan 1.4, Unity 6.3 LTS and Unreal Engine 5.8. Every number was fetched on 2026-11-01 and every claim about a feature is explained on the concept pages of this section. The approach follows the E-commerce Platforms Comparison, the Documentation Tools Comparison and the Cloud Providers Comparison of this site: data kept in CSV files, charts generated from them, and a stated source and date for every figure. The page does not name a winner, because the right choice depends on the target platforms, the team and what has to be shipped; the last sections turn the data into recommendations by purpose. For the criteria in prose see Choosing an API or Engine.

Scope, methodology and snapshot date

Scope. The six libraries are not the same kind of product. OpenGL, WebGL, Metal and Vulkan are graphics APIs: they give the program access to the GPU and nothing else. Unity and Unreal Engine are game engines: they add an editor, an asset pipeline, scripting, physics, audio and build targets on top of one or more graphics APIs. The definitions are in Graphics APIs vs Game Engines. Comparisons are therefore made within each group (four APIs, two engines) and across the two groups only on the axes where the comparison makes sense, such as platform reach, tooling or licensing.

Snapshot date. All values were fetched on 2026-11-01 from the sources in References and in scripts/graphics-games-comparison-charts/data/sources.csv; every row of the CSV files carries its own fetch date. Time series end at the latest complete period at that date: 2025 for yearly series and the quarter to date (2026-Q4) for npm.

Basis of every number.

  • Counts (questions, stars, contributors, downloads) are measured values from the sources named in each figure.

  • The engine-share chart is survey data from the JetBrains State of GameDev 2025 report, not a market share. The GDC 2026 State of the Industry report page could not be opened on the check date, so no percentage from it is cited.

  • A missing value is shown as n/a and is never drawn as zero. Unity and Unreal Engine have no public source repository, so they are n/a in the GitHub charts.

  • The radar scores are editorial. Each of the 60 scores has a recorded basis and source in radar-scores.csv and follows the rubric below; they summarise the evidence and are not a benchmark.

Feature matrix

OpenGL WebGL Metal Vulkan Unity Unreal Engine

Kind

Graphics API

Browser graphics API

Graphics API

Graphics API

Game engine

Game engine

Abstraction level

Medium: driver-managed state

Medium: sandboxed ES 3.0 subset

Low to medium: explicit commands

Low: explicit memory and synchronisation

High: editor and runtime

High: editor, runtime and source

Governance

Khronos Group

Khronos Group (WebGPU: W3C)

Apple

Khronos Group

Unity Technologies

Epic Games

Platforms

Windows, Linux, Android (ES), macOS up to 4.1

Browsers on desktop, mobile and headsets

iOS, iPadOS, macOS, tvOS, visionOS

Windows, Linux, Android; Apple through a portability layer

Mobile, desktop, web, consoles, XR

Desktop, consoles, mobile, XR

Languages

C, C++ and bindings

JavaScript, TypeScript

Swift, Objective-C, C++

C, C++ and bindings

C#

C++ and Blueprints

Shading language

GLSL, GLSL ES

GLSL ES 3.00 (WebGPU: WGSL)

Metal Shading Language

SPIR-V from GLSL, HLSL or Slang

HLSL, Shader Graph

HLSL, material graph

Licence or cost

Royalty-free open specification

Royalty-free open standard

Free, proprietary

Royalty-free open standard

Free tier, paid seats above a revenue threshold

Free, then a 5% royalty above US$1M of product revenue

Editor

None

None (three.js has an online editor)

Xcode

None

Unity Editor

Unreal Editor

Ray tracing

Not part of the core API

Not available

Acceleration structures and intersection functions

Extensions for ray tracing and ray queries

Through the render pipeline on supported GPUs

Hardware ray tracing, Lumen

XR

Legacy

WebXR

visionOS

OpenXR

XR Interaction Toolkit, AR Foundation

OpenXR plugin

Web target

Only through WebGL

Native

None

None

Web platform with WebGPU

Pixel streaming

Debugger

RenderDoc

Browser tools, Spector.js

Xcode Metal debugger

RenderDoc, validation layers

Frame Debugger, Profiler

Unreal Insights, GPU Visualizer

The ray tracing cells name what exists, not a ranking: the capability depends on the GPU, the driver and the version of the engine. The explanation of each row is on the pages listed in Choosing an API or Engine and Cross-Platform Translation Layers.

Strengths and weaknesses

OpenGL. Strengths: a huge body of books, tutorials and code; royalty-free; runs on old and new GPUs; a gentle state machine that makes pipeline concepts visible. Weaknesses: development stopped at version 4.6 in 2017; Apple froze it at 4.1 and deprecated it; implicit synchronisation limits multi-threading; no standard hardware ray tracing.

WebGL. Strengths: runs in every current browser with no install; the JavaScript ecosystem (three.js, Babylon.js) supplies scene graphs and loaders; links share instantly. Weaknesses: a sandboxed subset of OpenGL ES 3.0 without compute shaders; browser overhead and limits on memory; WebGPU is the successor and WebGL receives little new functionality.

Metal. Strengths: explicit but approachable API; first-party tools in Xcode; direct integration with Apple GPUs, MetalFX and machine learning; the way to render on visionOS. Weaknesses: Apple platforms only; the Metal 4 generation needs recent hardware and operating systems; RenderDoc does not capture it.

Vulkan. Strengths: the highest performance ceiling on desktop and Android; explicit multi-threaded submission; royalty-free; strong validation layers and tools. Weaknesses: the steepest learning curve and the most code before a first triangle; extensions and device differences; Apple platforms need MoltenVK or KosmicKrisp.

Unity. Strengths: fast iteration in C#, the Asset Store, the broadest platform reach including mobile and web, XR packages. Weaknesses: proprietary with seat licences above a revenue threshold; the render pipeline landscape is changing (the Built-in pipeline is deprecated, URP is the main investment); the engine owns the frame, which limits deep renderer changes.

Unreal Engine. Strengths: high-fidelity rendering out of the box (Nanite, Lumen, MegaLights), Blueprints and C++, full source access, mature tools. Weaknesses: heavy projects and long build times, a 5% royalty above US$1M of product revenue, limited browser support, a steep C++ framework.

Charts and data

All charts are generated from the CSV files by npm run charts:graphics-games-comparison. Each figure carries its source and retrieval date in its caption and its own text description.

Community activity: Stack Overflow questions

Line chart of Stack Overflow questions per year, 2010 to 2025, for the tags opengl, opengl-es, webgl, three.js, metal and vulkan
Figure 1. Stack Overflow questions per year for the graphics API tags, 2010 to 2025

The opengl tag peaked in 2014 at 5,150 questions and has fallen every year since; vulkan grew until 2022, and metal has no values before 2014 because the tag did not exist yet. Every tag falls steeply from 2023, mirroring the decline of the whole site, so the trend says little about the popularity of a library. By total, the opengl tag holds 37,925 questions, three.js 20,865, opengl-es 14,004, webgl 6,733, vulkan 2,531 and metal 2,309.

Line chart of Stack Overflow questions per year, 2010 to 2025, for the tags unity-game-engine, unreal-engine4 and unreal-engine5
Figure 2. Stack Overflow questions per year for the game engine tags, 2010 to 2025

Unity questions are an order of magnitude more numerous than Unreal Engine questions (76,776 in total for unity-game-engine against 2,277 for unreal-engine4 and 705 for unreal-engine5). Unreal Engine has its own forums and Epic community, so the tag undercounts its community. A tag that did not exist in a year is n/a.

Open repositories: GitHub stars and contributors

Bar chart of GitHub stars for three.js, wgpu, Vulkan-Docs, Vulkan-Samples, MoltenVK and ANGLE, with Unity and Unreal Engine marked n/a
Figure 3. GitHub stars of the open repositories
Bar chart of GitHub contributors for three.js, wgpu, Vulkan-Docs, Vulkan-Samples, MoltenVK and ANGLE, with Unity and Unreal Engine marked n/a
Figure 4. GitHub contributors of the open repositories

three.js has 117,335 stars and 2,613 contributors, wgpu 18,437 and 714, the Vulkan-Samples repository 5,414 and 132, MoltenVK 5,912 and 130, ANGLE (a mirror of the Chromium repository) 4,109 and 620, and Vulkan-Docs 3,366 and 154. Stars measure interest, not usage, and contributors include anonymous authors. Unity and Unreal Engine are marked n/a because their source is not public (Unreal Engine source is available on request through an Epic account).

Web ecosystem: npm downloads

Line chart of average npm downloads per week for three, @babylonjs/core and @webgpu/types, 2020 to 2026
Figure 5. Average npm downloads per week and quarter for three, @babylonjs/core and @webgpu/types

The three package grew from about 270,000 downloads a week in 2020-Q1 to about 14.2 million in 2026-Q3, @webgpu/types from a few hundred in 2021 to about 7.0 million, and @babylonjs/core from about 4,500 to about 325,000. The counts include continuous integration and mirror traffic, so they show direction rather than the number of developers; the last point is the quarter to date.

Engine usage: survey data

Grouped bar chart of the share of AAA, mid-size and indie, and hobbyist respondents using Unity, Unreal Engine, Godot and custom C++ engines
Figure 6. Engine usage by studio type from the JetBrains State of GameDev 2025 report

According to the JetBrains report, Unity is used by 64% of AAA, 63% of mid-size and indie and 57% of hobbyist respondents, and Unreal Engine by 55%, 38% and 28%. Godot and custom C++ engines are shown as context. Respondents could select several engines, so the shares do not add up to 100%, and the report notes that few AAA respondents took part. This is survey data with no stated sample size or fieldwork dates on the page; treat it as an indication.

Release timeline

Gantt chart of the generations of OpenGL and OpenGL ES, WebGL and WebGPU, Metal 1 to 4, Vulkan 1.0 to 1.4, and the major versions of Unity and Unreal Engine from 1992 to 2030
Figure 7. Timeline of specification and engine generations

OpenGL stopped at 4.6 in 2017 while Metal (2014), Vulkan (2016) and WebGPU (2023) were introduced; Unity 6 (2024) and Unreal Engine 5 (2022) are the current engine generations. Dates are release or announcement dates at the precision of the cited pages, and grouped generations share one bar.

Scores on ten axes

The radar charts score each library from 0 to 10 on ten axes. Higher is always better, so ease of learning and licensing openness are expressed as positives. The scores are editorial: each one has a basis and a source in radar-scores.csv.

Table 1. Scoring rubric
Axis Low (0 to 2) Middle (5) High (9 to 10)

Productivity

Everything written by hand

Some helpers or a partial framework

Editor, assets and scripting included

Control and performance ceiling

Black box

Some control over the frame

Explicit control of memory, synchronisation and pipelines

Platform reach

One platform

Several desktop or mobile platforms

Desktop, mobile, web, consoles and XR

Web reach

No browser target

Partial browser support

Runs natively in browsers

Ease of learning

Explicit synchronisation before any result

A few days to a first scene

A first result within hours

Tooling and debugging

Print debugging

Third-party tools only

First-party capture, profiler and validation

Documentation

Sparse

Specification plus some tutorials

Manual, reference, courses and samples

Ecosystem and assets

Few libraries

Libraries but no marketplace

Marketplace and large community

Licensing openness

Proprietary with royalties

Proprietary, free to use

Royalty-free open standard

XR support

None

Partial or through a plugin

First-class OpenXR and WebXR tooling

Radar chart on ten axes for OpenGL, WebGL, Metal and Vulkan
Figure 8. Radar chart of the four graphics APIs

Vulkan has the highest control and the most open licence, WebGL the widest web reach, Metal the best first-party tooling on its platform, and OpenGL sits in the middle on most axes with the gentlest learning curve of the native APIs.

Radar chart on ten axes for Unity and Unreal Engine
Figure 9. Radar chart of the two game engines

Unity scores higher on productivity, platform reach, web reach and XR; Unreal Engine on the control and performance ceiling. Both are proprietary, with different cost models.

Radar chart on ten axes for OpenGL, WebGL, Metal, Vulkan, Unity and Unreal Engine
Figure 10. Radar chart of all six libraries

The combined chart shows why APIs and engines are not ranked against each other: the engines lead on productivity and platform reach, the APIs on control and licensing openness.

Decision flowchart

The flowchart asks about the kind of product first and the platform second.

flowchart LR A{"What are you building?"} A -- "A renderer or learning project" --> B{"Where must it run?"} A -- "A game or interactive product" --> C{"How much fidelity and control?"} B -- "Browser" --> W["WebGL 2, or WebGPU where available"] B -- "Apple only" --> M["Metal"] B -- "Windows, Linux, Android" --> V["Vulkan, or OpenGL to learn"] C -- "Highest fidelity, C++ team" --> U1["Unreal Engine"] C -- "Many platforms, small team" --> U2["Unity"]
Figure 11. Choosing a library by the product and the platform

Recommendations by purpose

  • Learning graphics. OpenGL 4.x or WebGL 2 to see the pipeline as a state machine, then Vulkan or WebGPU to learn explicit resources.

  • A browser product. WebGL 2 with three.js, with WebGPU as an upgrade path.

  • An Apple-only app. Metal for custom rendering; higher-level frameworks for everything else.

  • A cross-platform renderer. Vulkan with a Metal backend or a portability layer, keeping a thin abstraction of your own (see Cross-Platform Translation Layers).

  • An indie or mobile game. Unity: the largest community and the widest platform reach for a small team.

  • A AAA-style game. Unreal Engine, where the renderer, tools and source access save years of work.

  • XR. An engine with OpenXR support, or Metal on visionOS for Apple-only experiences.

Limitations of the data

  • Stack Overflow’s decline since 2023 affects every tag; the metal tag is generic and also covers other topics.

  • Stars, contributors and downloads measure interest and activity, not the number of shipped products.

  • npm counts include continuous integration and mirror traffic.

  • Survey data has few AAA respondents and no stated sample size on the page.

  • APIs and engines are different kinds of product; no figure adds them together.

  • The radar scores summarise the evidence of the snapshot date and reflect the weighting of the rubric.