ID:2654803
 
Resolved
Because new particles reused empty slots in the array left behind from dead particles, they could draw out of sequence.
BYOND Version:514.1546
Operating System:Windows 10 Home 64-bit
Web Browser:Chrome 88.0.4324.146
Applies to:Dream Seeker
Status: Resolved (514.1547)

This issue has been resolved.
Descriptive Problem Summary:

Particles don't seem to follow any logic regarding how they are layered, particularly obvious when using icons. This is the case even when a generator that uses Z level is used, such as sphere.

I could be misusing the generators but I suspect it's a bug.

Numbered Steps to Reproduce Problem:

1. Create a particle with a gradient transition , so you can tell how they are layered. Using an icon helps make it obvious.

2. Give them sphere drift that has a negative Z value and gravity

3. Behold as particles fight over how they should be layered, with particles that should be rendered in the very back sometimes appearing overtop newly created ones.


Expected Results: New particles will always be rendered on top, especially if you are telling particles to go to the back over time through drift.

Actual Results: They do not.

Demo sent in Patreon Discord.
Lummox JR resolved issue with message:
Because new particles reused empty slots in the array left behind from dead particles, they could draw out of sequence.