# Strange behaviour with particles

**URL:** <https://forum.babylonjs.com/t/strange-behaviour-with-particles/25749>\
**Category:** Questions\
**Created:** [December 3, 2021, 1:18pm UTC](https://forum.babylonjs.com/t/strange-behaviour-with-particles/25749 "2021-12-03T13:18:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanieleSuppo](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@DanieleSuppo](https://forum.babylonjs.com/u/DanieleSuppo)\
**Post date:** [December 3, 2021, 1:18pm UTC](https://forum.babylonjs.com/t/strange-behaviour-with-particles/25749/1 "2021-12-03T13:18:49Z")

</div>

Hello, I have a simple particle animation:  
[https://playground.babylonjs.com/#IQPBS4#7](https://playground.babylonjs.com/#IQPBS4#7)  
the mesh emitter move along a path (it’s a baked animation),  
and I have 2 problems:

1. When it start it’s strange, because as you will see many particles are created, then the emitter doesn’t create them anymore, and next it start again to create particles…  
The 2nd loop, instead, it’s right…  
What’s happening?
2. I should use just one loop, and dispose the emitter when it reach the end of the animation.  
Well, I don’t know how to do.  
If I call particleSystem.dispose() all the particles are deleted, and it’s not what I want.  
I should use “particleSystem.emitter.dispose()”, but this method does not exist…  
How can I do?

Many thanks!

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [December 3, 2021, 4:25pm UTC](https://forum.babylonjs.com/t/strange-behaviour-with-particles/25749/2 "2021-12-03T16:25:00Z")

</div>

Hey!

1. [ParticleChristmasTree | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#IQPBS4#8) You were emitting too much particles (2000) with a capacity of 1000, meaning that in a second or 2 there were no room left for new particles
2. Can you share your code with the dispose? I did not see it in your PG

---

<div class="post-metadata">

**Author:** ![DanieleSuppo](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@DanieleSuppo](https://forum.babylonjs.com/u/DanieleSuppo)\
**Post date:** [December 3, 2021, 7:10pm UTC](https://forum.babylonjs.com/t/strange-behaviour-with-particles/25749/3 "2021-12-03T19:10:27Z")

</div>

[https://playground.babylonjs.com/#IQPBS4#9](https://playground.babylonjs.com/#IQPBS4#9)

Line 86

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [December 3, 2021, 7:37pm UTC](https://forum.babylonjs.com/t/strange-behaviour-with-particles/25749/4 "2021-12-03T19:37:31Z")

</div>

particleSystem.stop() is probably the way to go here: [https://playground.babylonjs.com/#IQPBS4#10](https://playground.babylonjs.com/#IQPBS4#10)
