xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From massimo citterio <c...@sinapto.net>
Subject simple animation and huge cpu load
Date Fri, 12 Sep 2008 15:30:37 GMT
Hi
I'm animating a simple object, a rect. It grows from 0 to a max
dimension by 3 intermediate steps.
The cpu load is 100%, as if the's a tight loop somewhere in batik
animation implementation. When the animation is over, cpu load is
correctly 0%.
What I am expecting is that the cpu load were very low, since the
animation is VERY simple. 
I tried also adding keytimes, but nothing changed.
Any idea?
Thanks.
Massimo Citterio


<animate
   attributeName="width"
   attributeType="XML"
   begin="2s"
   dur="30s"
   values="0;26;51;76;102"
   keyTimes="0;.25;.5;.75;0.99"
   calcMode="discrete"
   fill="freeze"
   id="animate1679" />


this is the full svg. you can test it with squiggle:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   width="744.09448819"
   height="1052.3622047"
   id="svg2"
   sodipodi:version="0.32"
   inkscape:version="0.46"
   sodipodi:docname="testanim.svg"
   inkscape:output_extension="org.inkscape.output.svg.inkscape">
  <defs
     id="defs4">
    <inkscape:perspective
       sodipodi:type="inkscape:persp3d"
       inkscape:vp_x="0 : 526.18109 : 1"
       inkscape:vp_y="0 : 1000 : 0"
       inkscape:vp_z="744.09448 : 526.18109 : 1"
       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
       id="perspective10" />
  </defs>
  <sodipodi:namedview
     id="base"
     pagecolor="#ffffff"
     bordercolor="#666666"
     borderopacity="1.0"
     gridtolerance="10000"
     guidetolerance="10"
     objecttolerance="10"
     inkscape:pageopacity="0.0"
     inkscape:pageshadow="2"
     inkscape:zoom="0.35"
     inkscape:cx="375"
     inkscape:cy="520"
     inkscape:document-units="px"
     inkscape:current-layer="layer1"
     showgrid="false"
     inkscape:window-width="762"
     inkscape:window-height="737"
     inkscape:window-x="141"
     inkscape:window-y="25" />
  <metadata
     id="metadata7">
    <rdf:RDF>
      <cc:Work
         rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
      </cc:Work>
    </rdf:RDF>
  </metadata>
  <!--g
     inkscape:label="Layer 1"
     inkscape:groupmode="layer"
     id="layer1">
    <rect

style="opacity:1;fill:#fe8f00;fill-opacity:0.9;fill-rule:nonzero;stroke:#ffa400;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
       id="testrect"
       width="245.71428"
       height="137.14285"
       x="80"
       y="175.21933" />
  </g-->


<g
   id="timerTemplate"
   transform="scale(0.92,1)">
		<rect
   x="53.676998"
   y="420.85599"
   width="105.071"
   height="3.451" />
		<rect
   x="54.683098"
   y="421.79099"
   width="102.89082"
   height="1.581"
   style="fill:#870102" />
	<rect
   id="timerTicker"
   x="54.683098"
   y="421.79099"
   width="0"
   height="1.581"
   style="fill:#ff0000"> 
		<animate
	   attributeName="width"
	   attributeType="XML"
	   begin="2s"
	   dur="30s"
	   values="0;26;51;76;102"
	   keyTimes="0;.25;.5;.75;0.99"
	   calcMode="discrete"
	   fill="freeze"
	   id="animate1679" />
	</rect>
		<rect
   x="79.752998"
   y="420.94501"
   width="1.064"
   height="3.2720001" />
		<rect
   x="105.684"
   y="420.94501"
   width="1.064"
   height="3.2720001" />
		<rect  
   x="131.593"
   y="420.94501"
   width="1.064"
   height="3.2720001" />
			
		</g>
</svg>


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


Mime
View raw message