TGFX - 腾讯开源的轻量级 2D 渲染引擎

TGFX - 腾讯开源的轻量级 2D 渲染引擎

  • 首页
  • 下载
  • 文档
  • 案例
  • CN
  • GitHub
  • 论坛交流
  • Languages iconEN
    • CN
TGFX

TGFX (Tencent Graphics) is a lightweight 2D graphics library designed for modern GPUs, delivering high-performance text, image, and vector rendering across all major platforms.

Get StartedBenchmark
TGFX Logo
FEATURE
1

Ultra Lightweight

Core features fully align with Skia, covering images, vectors, text, blend modes, filters, Picture recording, and more. Advanced capabilities such as PDF, SVG, 3D transformations, and wide-gamut rendering are also supported. With comparable functionality, TGFX is significantly lighter, with the core rendering module approximately 30% of Skia's binary size.

Ultra Lightweight
2

High Performance

The rendering pipeline is deeply optimized for modern GPUs, completely dropping support for legacy CPU pipelines. Memory usage is lower, CPU/GPU mixed-call blocking is minimized, and multi-threading, SIMD, and HardwareBuffer acceleration are fully utilized. In some scenarios, performance can be up to 10× higher than Skia.

Benchmark
High Performance
3

Cross Platform

Supports nearly all major platforms, including iOS, Android, macOS, Windows, Linux, Web, and OpenHarmony, while also compatible with Qt and mini-program environments. Through the PAG solution, TGFX has been deployed in thousands of leading products, with stability verified by a massive user base.

Cross Platform
4

GPU Interface

Provides a standalone, cross-platform GPU interface layer, unifying Metal, Vulkan, WebGPU, and OpenGL backends under a modern GPU API design. The wrapper is extremely thin, with near-zero runtime performance overhead. OpenGL safety is enhanced as well, allowing resources to be safely released on any thread.

GPU Interface
5

Layer Module

Offers a layer rendering module close to the application layer, supporting out-of-the-box tree-structured display lists. It combines partial refresh and tiled rendering techniques with an efficient dirty marking system and fast culling, easily handling hundreds of thousands of layers on screen, while enabling smooth and responsive zooming and panning.

Layer Module
6

Visual Inspector

Comes with visual inspecting tools that, with specific compile options, enable fast frame capture, render flow analysis, and performance bottleneck detection across all platforms. For the layer rendering module, it provides a display list viewer to expand layers and preview attributes in real time, helping quickly identify rendering issues.

Download
Visual Inspector
USERS

Who's Using TGFX ...

PAG
PAG
CoDesign
CoDesign
IMA
IMA
Tencent Maps
Tencent Maps
Hippy
Hippy
Migu Video
Migu Video
TGFX Inspector

Free Download

Coming Soon ...
公司地址:广东省深圳市南山区海天二路33号腾讯滨海大厦Copyright © 2018 - 2026 Tencent. All Rights Reserved.联系电话:0755-86013388隐私政策