Tuesday, March 31, 2009

[jQuery] Re: fastest way to create a million div's?

I don't know much about AS, but creating pixels as objects is likely
not the fastest approach. You should take advantage of vector drawing
tools and bitmaps. Take a look at this stuff:

http://www.flashvault.net/tutorial.asp?ID=52
http://www.bytearray.org/?p=67

Optimized DHTML drawing:
http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm

SVG/VML is also an alternative, with something like raphaeljs.com

good luck!
- ricardo

On Mar 30, 2:50 am, Shedokan <shedo...@yahoo.com> wrote:
> thanks for all of your comments, I will try them all.
>
> As for canvas, I can't really use it because I want to support pixel
> editing and when resizing the canvas I'll need to re render it again
> and again.
>
> and as for flash, when I try to add that much pixels it gives me a
> warning about stopping the script.
>
> but I am looking at all possible ways.

No comments: