I have been playing with a few simple storyboard scenes. The Sample code seems to remove event listeners when the scene is destroyed, and add listeners on “enterScene”
With my tests, if I did not purge the previous scene then I would end up doubling up on the events. Each time you switch scene, these would then double again.
So, I am asking
-
Is it better to remove event listeners on “exitScene” rather than “destroyScene”
-
Am I increasing memory usage each time I swap scenes without purging (if I swap between 2 scenes only)
Thanks