蜡染动画和沉重的CPU负载

发布于 2024-12-07 08:03:29 字数 204 浏览 3 评论 0原文

我们在一个项目中使用 Apache Batik 在 Swing 应用程序中显示 SVG 图形。当我们使用SVG的动画标签时,会导致CPU负载过重。

我知道有一些方法可以限制 fps 或 cpu 利用率,但为什么 Batik 占用如此多的 cpu 功率?

从 1.7 版本开始,这个项目似乎已经死了。该项目是否有任何分支或者是否会继续?

提前致谢。

we are using Apache Batik in a project for displaying SVG graphics in a Swing application. When we use the animation tag of SVG, it results in heavy cpu load.

I know there are methods to limit the fps or cpu utilization, but why is Batik taking so much cpu power?

Since release 1.7, it seems that the project is dead. Are there any forks of this project or will it be continued?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瘫痪情歌 2024-12-14 08:03:29

动画,尤其是矢量图形,往往会占用大量 CPU。除非他们充分利用您的显卡加速,例如使用 OpenGL。

据我所知,Batik 到目前为止会自行完成所有渲染,并且无法将太多负载卸载到 GPU,因此它将使用大量 CPU。 (从好的方面来说,它可以在没有 GPU 的服务器上正常工作,允许脚本转码,并提供有保证的结果。)

是的,不幸的是,该项目现在似乎缺乏积极的贡献者。就像许多其他 Apache 公共项目一样。但至少处于非常可用的状态。但你为什么不参与这个项目并提供帮助呢?他们有很多开放的错误报告,可以帮助他们处理。

Animations, in particular with vector graphics, just tend to take a lot of CPU. Unless they fully exploit your graphics card acceleration, e.g. by using OpenGL.

As far as I know, Batik so far does all the rendering itself, and cannot offload to your GPU much, so it will use a lot of CPU. (Which on the up side means it will work fine on a server that doesn't have a GPU, allow scripted transcoding, and give guaranteed results.)

Yes, the project seems to lack motivated contributors these days, unfortunately. Just like many other Apache commons projects. But at least it is in a very usable state. But why don't you jump on the project and help out? They have a lot of open bug reports they could use a hand with.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文