Optimizing my dynamic background engine for a 2d flash game in actionscript-3

前端 未结 6 1400
青春惊慌失措
青春惊慌失措 2021-02-11 05:23

Edit 2: judging on the lack of replies I start wondering if my issue is clear enough. Please tell me if I need to elaborate more.

Notice: see bottom for a co

6条回答
  •  半阙折子戏
    2021-02-11 06:02

    You may want to see if you can blit all of the pieces together into a flattend Bitmaps as you go. Draw all of the layers and then use BitmapData's draw method to combine them into a single Bitmap.

    Even with cacheAsBitmap on for all of the pieces Flash is still having to combine all of those pieces every frame.

提交回复
热议问题