ThorVG的CPU-only演示,这是一个高性能的2D矢量图形引擎。

1作者: hermet3 天前原帖
我制作了一个演示应用程序,以展示ThorVG引擎的性能。 主要特点: - 每个敌人由86个粒子组成,屏幕上最多可显示约300个敌人。 - 全尺寸(2K)细腻的光晕背景位图图像和4层100颗星星的层次。 - 实时阴影和模糊效果,适用于飞船、导弹、图形用户界面和轮廓。 - 在峰值负载时,约25,000个绘图对象同时渲染。 - 在2K分辨率下,使用软件渲染器运行稳定,帧率超过120 FPS(在Apple M2 Pro上测试)。 演示视频:[https://www.youtube.com/watch?v=jdnnzmtHy9k](https://www.youtube.com/watch?v=jdnnzmtHy9k) 代码库:[https://github.com/thorvg/thorvg.janitor](https://github.com/thorvg/thorvg.janitor) 该演示特别强调了软件渲染器(仅限CPU)。支持GPU后端(OpenGL/WebGPU),但优化工作仍在进行中。 ThorVG是一个开源高性能2D矢量图形引擎,旨在用于嵌入式、移动和网络系统。此演示旨在作为性能展示和压力测试。欢迎反馈和贡献!
查看原文
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:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=jdnnzmtHy9k<p>Repo: https:&#x2F;&#x2F;github.com&#x2F;thorvg&#x2F;thorvg.janitor<p>This demo specifically highlights the Software Renderer (CPU only). GPU backends (OpenGL&#x2F;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!