clik-engine API
    Preparing search index...

    Class GPUParticleEmitter

    High-performance CPU particle system optimized for large counts. Uses a flat array with pooling — no object allocation during gameplay. Renders via Phaser Graphics for zero-texture overhead.

    For true GPU rendering, WebGL custom pipelines would be needed. This implementation targets 5K-10K particles at 60fps via optimized loops.

    Usage:

    const emitter = new GPUParticleEmitter(scene, { maxParticles: 5000, rate: 500 });
    emitter.setPosition(400, 300);
    emitter.start();
    // In update:
    emitter.update(delta);
    Index

    Constructors

    Accessors

    Methods