- Forked from:
- mash's Tree - ContextFreeArtAS3
forked from: Tree - ContextFreeArtAS3
somebody please optimize this code!
source code: http://github.com/mash/ContextFreeArt-AS3
This software is a port of ContextFree.js to Actionscript3.
Context Free Art is http://www.contextfreeart.org/index.html
ContextFree.js is http://code.google.com/p/contextfree/
some hints about implementation for improvement
ContextFree is a combination of resized primitive shapes:
Circle, Square, Triangle
in this implementation, every primitive shapes are
"children" of "ContextFreeArt",
which makes it slow to "addChild" and render
after there's already plenty of children.
I thought it would be faster if we draw each primitive when needed,
but bitmaps quality drops when resized
誰か最適化してちょうだい!
ContextFreeはprimitiveな円と四角と三角形の組み合わせです
今の実装では、ContextFreeにどんどんaddChildしていくので
大量にaddChildした後にだんだんパフォーマンスが落ちていきます..
必要な時にbitmapdata.drawしていけばよいのでしょうが
リサイズ時に画質劣化が激しいので厳しいのでは,,(今ココ
nutsu>>
どうしてもベクターが多いと重いですね
とりあえずF5でaddChildをやめたのでメモリに関しては改善されたかな、、
とここで時間切れです、、
- forked:2
- favorite:18
- lines:610
- license : MIT License
- modified : 2010-03-10 14:11:32
Very cool! 8)
- by
UncleNinja
- at 2010/03/11 05:27:13
yeahlo
:
tree
faster Tree - ContextFreeArtAS..
- forked:4
- favorite:13
- lines:647 (diff:150)
- tag:


