Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ParticlePool.ListPolicy Enum

    Namespace: Stride.Particles
    Assembly: Stride.Particles.dll

    public enum ListPolicy

    Fields

    Name Description
    Ring

    New particles are allocated from the next free index which loops when it reaches the end of the list. The pool doesn't care about dead particles - they don't move and get overwritten by new particles.

    Stack

    New particles are allocated at the top of the stack. Dead particles are swapped out with the top particle. The stack stays small but order of the particles gets scrambled.

    Extension Methods

    ComponentBaseExtensions.DisposeBy<ParticlePool.ListPolicy>(ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<ParticlePool.ListPolicy>(ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation