开发者

Do display objects outside of stage bounds still get rendered by Flash?

开发者 https://www.devze.com 2022-12-29 19:19 出处:网络
If an object exists outside of Flash\'s stage boundaries, is on the Display List, and is visible,开发者_StackOverflow is it causing a performance hit from Flash rendering it? In other words, does Flas

If an object exists outside of Flash's stage boundaries, is on the Display List, and is visible,开发者_StackOverflow is it causing a performance hit from Flash rendering it? In other words, does Flash render what isn't seen?

This leads me to believe so: How do you make Flash not render an object on the Stage?


No, Flash renders at its final step only the stage. However it renders an object also in other circumstances (e.g. bitmapData.draw(displayObject)).

Of course those people from the question to refer to are right that the bounds of a DisplayObject have to be evaluated etc. In the end: if you want something not to be rendered, it should not be on the stage or set to visible = false if it is temporary.

0

精彩评论

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

关注公众号