F
Finn
Guest
What is the most efficient way to clean up particle systems? More specific: Is is possible to completely clean up a particle system only knowing its name/id - but not the ids of the emitters or particles?
As far as I understand the following steps are required to remove particle systems from memory entirely:
As far as I understand the following steps are required to remove particle systems from memory entirely:
- Clear existing partciles in the current room - as in part_particles_clear(); - this is also done by part_type_destroy();
- Remove particles from memory - as in part_type_destroy();
- Remove particle emitters from memory - as in part_emitter_destroy(); - this is also done by part_system_destroy();
- Remove particle system from memory - as in part_system_destroy();
- using part_system_destroy() will take care of 3) & 4) only requiring the particle system name.
- using part_particles_clear() will take care of 1) only knowing the particle system name independent of how many particles are associated with the system