Flint Particle System Forum - FrameUpdater continues to listen to ENTER_FRAME events after emitter is stopped Tue, 13 Dec 2011 00:30:28 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher FrameUpdater continues to listen to ENTER_FRAME events after emitter is stopped http://flintparticles.org/forum/comments.php?DiscussionID=200&Focus=763#Comment_763 http://flintparticles.org/forum/comments.php?DiscussionID=200&Focus=763#Comment_763 Wed, 15 Apr 2009 00:27:40 +0100 Koj
It seems as though when stop() is called on an Emitter that uses internal ticks FrameUpdater stops listening to UpdateEvents when it is actually listening to ENTER_FRAME events. The result of this is that FrameUpdater continues to make calls every frame even after an emitter is stopped, its renderer is removed from the display list and both are set to null. Could you please fix this so that FrameUpdater stops making unnecessary calls after an emitter is stopped? Thank you. ]]>
FrameUpdater continues to listen to ENTER_FRAME events after emitter is stopped http://flintparticles.org/forum/comments.php?DiscussionID=200&Focus=765#Comment_765 http://flintparticles.org/forum/comments.php?DiscussionID=200&Focus=765#Comment_765 Thu, 16 Apr 2009 08:47:38 +0100 Richard
However, I see that it could be more efficient by using reference counting and stopping the enterFrame listener in the FrameUpdater if there are no update event listeners. Since it doesn't break anything and the cost of the single enterFrame listener is small, this is not a high priority change. I will add it to the list of nice to have changes and try to get it in the 2.1 release, whenever I have time to finish that. ]]>
FrameUpdater continues to listen to ENTER_FRAME events after emitter is stopped http://flintparticles.org/forum/comments.php?DiscussionID=200&Focus=770#Comment_770 http://flintparticles.org/forum/comments.php?DiscussionID=200&Focus=770#Comment_770 Fri, 17 Apr 2009 20:08:25 +0100 Koj