We have encounter tered the same problem That have caused us to to abandoned some of our works. As you said the IE will mess you up with about 5000-6000 elements (not 50,000). FF Not doing much better either- it will take you a century to get a mouse click event.
There are several avenues you can approachs. 1- Making a round trip client/server to have the image back from the server. 2- Or: - Using client side javascript to dynamically create bitmap files that the browsers support (BMP,PNG,GIF.PCX.IMG... or even XBM). - We have done it and it works beautifully. (our Client side javascript can generate bit map enough to fill out 2,000,000 pixels AND 48 others 400x400 bitmap to form an almost full screen animation bench marked at ( 2' for FF and 4 ' for the IE6). - With the right format, this approach also give you the full control of the display. (You can plot/draw or examine the value of every single pixel of your display) - Draw-backs: There not much help floating on the net You may have to start from the scratch. 3- Let us know If you like some help. Good luck. Phi. On 2/13/06, Nikita Ogievetsky <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I placed my implementation of SVG cellular automata at > > http://www.swglasses.com/?si=urn:cogx:resource:svgautomata > > > > My main challenge was to optimize performance in terms of amount of cells > (rect objects) that the game can draw. > > Interestingly, resetting (removing rectangular objects) is some times more > intensive than drawing them, and can actually freeze the browser (on my > laptop the bottleneck happens after about 50000 shapes are drawn) For FF: if you combine background color and 4 border color you can improve quite a bit. (about 1/2). For:IE You may optimize thru mask and chroma filter to reduce the number of rect required to display your image. 'One thing shoud be note: IE and FF take long, long time to do string object calculation example if A as string then . A+=A 4000 times my cost you not one but SEVERAL minutes. I Hope this help. Your suggestions of improvement are greatly appreciated. > > > > Thanks, > > > > --Nikita > > > > > > [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 > > > > > > > [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/ <*> 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/