BitmapData.setVector
http://webr3.org/blog/haxe/bitmapdata-vectors-bytearrays-and-optimization/
最近才知道,在 FP10 當中
BitmapData新增了幾個Method: getVector and setVector
而最近又剛好在做跟粒子有關的特效,效能方面一直是很大的問題
直到找到這篇文章,
裡面詳細的紀綠了各種狀況下 ( getPixels, setPixels, getVector, setVector)的效能比較
看來在FP10 當中使用Vector是必要的啊 !
// Someone ask me to write in English , so here it is !
Recently, i’ve been working on some particles effects,
the performance issue has always been a problem , and i’ve just learned that in the Flash Player 10
they have added some new features to the BitmapData class : getVector and setVector,
as i’m wondering what’s the difference between the old getPixels, setPixel and the new getVector, setVector,
i found this post, it’s really helpful , enjoy!
近期迴響