On 9/21/06, Phi Tran <[EMAIL PROTECTED]> wrote:
>
>
>
> On 9/21/06, Jim Ley <[EMAIL PROTECTED]> wrote:
> >
> >
> > "revelonshift" <[EMAIL PROTECTED] <revelonshift%40yahoo.com>> wrote
> > in message
> > news:[EMAIL PROTECTED] <eetniq%2Bdls9%40eGroups.com..>.
> > > Hello there. Is there somebody experienced in
> > > high-perrformance-tweaking of SVG implementation in Mozilla? I did
> > > almost everything I could think about for optimization, but still, my
> > > Submarine close-to-finish game performs in Gecko based browsers the
> > > worse. The best is of course ASV (taking rouhly about 30% os CPU),
> > > second is Batik (taking in some actions 100% of CPU), then Opera (is
> > > optically slower than Batik but takes maximally 70% of CPU => I don't
> > > know why :-( ) and Mozilla/Firefox is the worst of them, reaching
> > > 100% of CPU power very often. I tried use of cloneNode instead of
> > > creating new one, without benefit, I tried use one complex gradient
> > > instead of several simple ones, again no benefit. The only possible
> > > way to speed things in Firefox up is disable almost everything and
> > > reduce greatly number of elements. But I'm quite sure that there must
> > > be something I'm still not aware of...
> >
> > The biggest Mozilla speed improvement in scripting will be to not use
> > getElementById() but to cache every single reference in a seperate
> > variable
> > of your own. currently mozilla re-looks up every node in the DOM for XML
> >
> > documents, and it's very, very slow.
> >
> > Jim.
> >
>
Sorry for my mistkae on mouse click.

(this may nad may not relate to this thread)

I like to share with you my experiment with SVG to increase its speed.

You can try that yoursself. It will make your SVG "FAST".
(I have server side C code to convert SVG to Javascript Array and load it as
XMLHTTP but its not the point I like make).

I will try  illustrate what I did by using Javascript code:
I walk thru the dom to convert SVG to Javascript Array.
such as:
SVG= new Array();
SVG["First_G"]=new Array();
SVG["First_G"]["First_path"]=new Array();
SVG["First_G"]["First_path"]["d"]=""M0,0 C12, 13, 14..";
SVG["First_G"]["First_path"]["fill-opacity"]="0.5".
SVG["First_G"]["First_path"]["stroke-color"]="255,255,255"

SVG["First_G"]["Second_path"]=new Array();
So on . . .

You also need a piece of code (using join(). . . ) to convert it back to SVG
code
Pay more attention on ["style"] thing.

then submit  it to the player. (depend on browser)

You will see it realy fast when you updating the SVG's element/ attribute
specially on large SVG file.


Hope this helps.

Phi


> >
>
>
>
> --
> Phi - Tran
> Hugely increase your speed, saving your band-width with ZipProtocol
> plus crystal clear SVG Rendering image at
> HTTP://oneplusplus.com
>



-- 
Phi - Tran
Hugely increase your speed, saving your band-width with ZipProtocol
plus crystal clear SVG Rendering image at
HTTP://oneplusplus.com


[Non-text portions of this message have been removed]



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to