You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Matthias Grumet <ma...@grumet.at> on 2008/03/17 11:27:03 UTC

optimizing the performance of svgrasterizer

hello,

we are using batik's svgrasterizer for a game, but are experiencing
performance issues, when rasterizing SVGs.

we believe that the function
org.apache.batik.gvt.renderer.StaticRenderer.repaint(Shape)
creates quite a lot of temporary objects which triggers garbage
collection a lot which results in occasional stuttering of the game.

so i was wondering, if there are any options or configurations to
batik in order to have the svgrasterizer perform better in terms of
garbage collection and CPU time.

we want it to create as little garbage as possible and as little CPU
time as possible.

thank you,
matthias

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: optimizing the performance of svgrasterizer

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
I don't know if there's any built-in switch to optimize here, but have
you experimented with the JVM settings? Like "-server" and/or
"-XX:+UseParallelGC". Just a thought.

On 17.03.2008 11:27:03 Matthias Grumet wrote:
> hello,
> 
> we are using batik's svgrasterizer for a game, but are experiencing
> performance issues, when rasterizing SVGs.
> 
> we believe that the function
> org.apache.batik.gvt.renderer.StaticRenderer.repaint(Shape)
> creates quite a lot of temporary objects which triggers garbage
> collection a lot which results in occasional stuttering of the game.
> 
> so i was wondering, if there are any options or configurations to
> batik in order to have the svgrasterizer perform better in terms of
> garbage collection and CPU time.
> 
> we want it to create as little garbage as possible and as little CPU
> time as possible.
> 
> thank you,
> matthias
> 



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org