开发者

Can empty sprites or movieclips slow down a application

Just curious to know if empty movie clips or sprite can slow down a application or game. Reason being is because I want to use multiple sprites as containers for my object. So I can easy manage what objects are in front of others. Some poi开发者_如何转开发nts in the game, layers will be empty so I am just curious if I should just make those layers null if they arent being used or will that even make a big difference. thanks!


Yes! Every object you create ultimately requires some resources. But you're going to have to create quite a few before you run into any problems. Odds are, you don't have to worry about it. (in this case)

It's always a good idea to remove any objects you are done with, but the new key word is really expensive, so if you know you are going to need an object again soon, just hold on to it. Especially something small like an empty Sprite.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜