Large Sprite Performance
- by Iansen
I've got a large Sprite generated using a set of vertices(x,y coordinates) and a bitmap pattern (using moveTo, lineTo, beginBitmapFill, endFill ...etc). It's about 15000 pixels wide and between 1500 - 2000 pixels high depending on the level -it's the terrain for a 2D game.
My question is: what is the best way to display/move it on the stage - performance wise?
Currently I'm just adding it to the stage as is...I get decent frame rate/ memory/ cpu usage but I want to optimize it for slower PCs.
Any ideas? I've been reading a little about blitting but I'm not sure how to implement it in my case.
Thanks.