# BitmapData.draw on vectorized sprite

**URL:** <https://forum.kirupa.com/t/bitmapdata-draw-on-vectorized-sprite/330699>\
**Category:** flash\
**Created:** [March 2, 2013, 10:38am UTC](https://forum.kirupa.com/t/bitmapdata-draw-on-vectorized-sprite/330699 "2013-03-02T10:38:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tompa](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@Tompa](https://forum.kirupa.com/u/Tompa)\
**Post date:** [March 2, 2013, 10:38am UTC](https://forum.kirupa.com/t/bitmapdata-draw-on-vectorized-sprite/330699/1 "2013-03-02T10:38:58Z")

</div>

I got a bitmapData that is drawing some content from an array, over and over again.  
This array contains a lot of sprites, less detailed and more detailed vectorized images.

When the bitmapData draw the less detailed sprite it takes around 4ms, which is very good!  
However, when it draws the more detailed image, it can be up to **250ms!**

I’ve tried to set the sprites to cacheAsBitmap before the bitmapData draws it,  
but that made no difference.

Some more details:  
The sprites are about 500x500  
I’m using Starling, which means I can’t add vectorized images as they are.  
_(I have to use bitmapData and create a texture from that)_

_Very grateful for help!  
~Tompa_
