Problem with Expandable SPS

I’d like to be able to update specific particles on the screen and expand the SPS when I need to.

Weird things happen when I try to do that in this PG:

https://playground.babylonjs.com/#X1T859#9

That is the example from the doc with code added at line 88 and line 103.

Pinging @jerome

What are you trying to do?
https://playground.babylonjs.com/#X1T859#10

This. I don’t want to update every particle when I only need to update one.

https://playground.babylonjs.com/#CMS27E#8

You mighty get some stuff out of one of my old playgrounds.

Here is another example that shows the issue I’m dealing with.

The PG creates an expandable SPS with 10 boxes. Every half second a box is positioned. When the last box in the SPS is positioned, 10 more boxes are added to the SPS.

https://playground.babylonjs.com/#X1T859#13

Changing the code to update all particles only when expanding improves things. The first 10 particles are still having issues, though.
https://playground.babylonjs.com/#X1T859#12

It looks a bug.
I’ll investatigate.

1 Like