ThorVG 的纯 CPU 演示,一个高性能 2D 矢量图形引擎
1 分•作者: hermet•9 个月前
我构建了一个演示应用程序,以展示 ThorVG 引擎的性能。
主要特点:
* 每个敌人由 86 个粒子组成,屏幕上最多可同时显示约 300 个敌人。
* 全尺寸 (2K) 柔和光晕背景位图图像和 4 × 100 星星层。
* 为飞船、导弹、GUI 和轮廓提供实时的 DropShadow 和 BlurEffects。
* 在峰值负载下,同时渲染约 25,000 个绘图对象。
* 在 2K 分辨率下,使用软件渲染器在 120+ FPS 下完全稳定运行(在 Apple M2 Pro 上测试)。
演示视频:https://www.youtube.com/watch?v=jdnnzmtHy9k
代码库:https://github.com/thorvg/thorvg.janitor
此演示特别强调软件渲染器(仅限 CPU)。GPU 后端(OpenGL/WebGPU)已支持,但优化工作正在进行中。
ThorVG 是一个开源的高性能 2D 矢量图形引擎,专为嵌入式、移动和 Web 系统设计。此演示旨在作为性能展示和压力测试。欢迎提供反馈和贡献!
查看原文
I’ve built a demo app to showcase the performance of the ThorVG engine.
Key features:<p>- Each enemy consists of 86 particles, with up to ~300 enemies on screen.<p>- Full-size (2K) subtle halo glow background bitmap image and 4 × 100 star layers.<p>- Real-time DropShadow and BlurEffects for ships, missiles, GUI, and outlines.<p>- At peak load, ~25,000 drawing objects rendered together.<p>- Runs fully stable at 120+ FPS with the Software Renderer on 2K resolution (tested on Apple M2 Pro).<p>Demo video: https://www.youtube.com/watch?v=jdnnzmtHy9k<p>Repo: https://github.com/thorvg/thorvg.janitor<p>This demo specifically highlights the Software Renderer (CPU only). GPU backends (OpenGL/WebGPU) are supported, but optimization work is ongoing.<p>ThorVG is an open-source high-performance 2D vector graphics engine designed for embedded, mobile, and web systems. This demo is intended as a performance showcase and stress test. Feedback and contributions are welcome!