wonderfl - build flash online

Comparing Graphics.drawPath() method with traditional Graphics API

Comparing Graphics.drawPath() method with traditional Graphics API, Graphics.moveTo() and Graphics.lineTo() methods. Graphics.drawPath() method does not seem to be very fast. But it is convenient to draw the same graphics to multiple instances.
"Comparing Graphics.drawPath() method with traditional Graphics API"
http://blog.jactionscripters.com/2011/09/13/comparing-graphics-drawpath-method-with-traditional-graphics-api/
「描画では、drawPath()を使用する方が、一連の個別のlineTo()メソッド(...[中略]...)を使用するよりもレンダリングが高速」だとされる。しかし、頂点100個の星形を1000個のShapeに描いたかぎりでは、明らかな違いはないように見える。500個にすると、少し差が出た。同じ形状を複数のインスタンスに描く場合に用いるのがよさそう。
「Graphics.drawPath()メソッドでパスの多いかたちを描く」
http://www.fumiononaka.com/TechNotes/Flash/FN1109001.html

Fumio Fumio

add to favorites

Embed

Code Fullscreen

Talk

I don't understand japanese, so I can't read your full description, but I think there is a most
important difference between the drawPath() and "the traditional Graphics API" than
the speed issue:
http://www.flashandmath.com/howtos/pathalpha/index.html

Thank you for introduction of the article.  I wrote description in English to the JActionScripters.
http://blog.jactionscripters.com/2011/09/13/comparing-graphics-drawpath-method-with-traditional-graphics-api/

  • by Fumio
  • at 2011/09/13 00:41:50

Favorite by

sectKeywords

ページの先頭へ戻る