开发者

Batik's animation and heavy cpu load

开发者 https://www.devze.com 2023-04-09 12:03 出处:网络
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.

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 t开发者_如何学编程here any forks of this project or will it be continued?

Thanks in advance.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号