Large Sprite Performance
Posted
by
Iansen
on Game Development
See other posts from Game Development
or by Iansen
Published on 2012-10-02T17:24:24Z
Indexed on
2012/10/02
21:53 UTC
Read the original article
Hit count: 104
flash
|actionscript-3
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.
© Game Development or respective owner