Hi Marco,

"Marco Riedel" <[EMAIL PROTECTED]> wrote on 06/21/2007 11:36:27 AM:

> I have an document with about ten Layers (each rather complex about 
> 180 - 270KB).
> 
> I am trying to blend one of the Layers out and then blend another inby 
setting
> 
> attribute "fill-opacity" in an animation thread from an batik 
JSVGCanvas.
> There are always max 2 Layers displayed.

   Using fill-opacity is in this case a fairly bad way to do the blend.
You are probably better off using 'opacity'.  This will give a better
effect and allow for the passability of caching the rendered fully opaque
layer and just bit-blitting it  with a different opacity (although we 
don't
do that now).

> Drawing in a small Window (200x100 ) the animation is very fast ( 
> 2100 millis for 5
> 
> Frames core2 Duo 1,83 GHz) but with larger sizes (like 1024x768) 
> the repaint takes
> 
> very long(3998 millis for 5 Frames), so the problem is not the 
DomRendering.

    Hmm?  It only takes 2x as long to render 5*7 = 35x the pixels.
The Screen rendering is not so long my guess is that a large chunk of
your 2100 millis is rebuilding the tree from the fill-opacity change.

    My guess is that your performance will be closer to 2000 millis for
5 frames @1024x768 with the opacity change.

> My question is:
> Whats the bottleneck and is there a workaround?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to