Skip to main content
Known Participant
February 9, 2013
Answered

what is difference between invisible and removeChild() for memory and frem rate?

  • February 9, 2013
  • 1 reply
  • 397 views

what is difference between invisible and removeChild() for memory and frem rate?

This topic has been closed for replies.
Correct answer kglad

there's probably no significant difference except with removechild the object doesn't have a depth.

despite using each, the objects still occupy memory and affect frame rate.  flash still needs to keep track of the positions of both and they both can trigger positive hittests.

neither needs to be drawn so it's better to use either than set the alpha to zero.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
February 9, 2013

there's probably no significant difference except with removechild the object doesn't have a depth.

despite using each, the objects still occupy memory and affect frame rate.  flash still needs to keep track of the positions of both and they both can trigger positive hittests.

neither needs to be drawn so it's better to use either than set the alpha to zero.