Performance: Emission and shape modules
MEDIUM IMPACT
This affects how many particles are created and where they appear, impacting frame rate and rendering load.
var emission = particleSystem.emission;
emission.rateOverTime = 100;
var shape = particleSystem.shape;
shape.shapeType = ParticleSystemShapeType.Sphere;var emission = particleSystem.emission;
emission.rateOverTime = 1000;
var shape = particleSystem.shape;
shape.shapeType = ParticleSystemShapeType.Mesh;
shape.mesh = complexMesh;| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| High emission + complex mesh shape | N/A | N/A | High GPU load, many draw calls | [X] Bad |
| Moderate emission + simple sphere shape | N/A | N/A | Lower GPU load, fewer draw calls | [OK] Good |