FPSCPool

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Particles/WorldPSCPool.h

Include

#include "Particles/WorldPSCPool.h"

Syntax

struct FPSCPool

Variables

Name Description

Public variable

TArray < FPSCPoo ...

 

FreeElements

Collection of all currently allocated, free items ready to be grabbed for use.

Public variable

TArray < UPartic ...

 

InUseComponents_Auto

Array of currently in flight components that will auto release.

Public variable

TArray < UPartic ...

 

InUseComponents_Manual

Array of currently in flight components that need manual release.

Public variable

int32

 

MaxUsed

Keeping track of max in flight systems to help inform any future pre-population we do.

Constructors

Name Description

Public function

FPSCPool()

Functions

Name Description

Public function

UParticleSys ...

 

Acquire

(
    UWorld * World,
    UParticleSystem * Template,
    EPSCPoolMethod PoolingMethod
)

Gets a PSC from the pool ready for use.

Public function

void

 

Cleanup()

Public function

void

 

KillUnusedComponents

(
    float KillTime,
    UParticleSystem * Template
)

Kills any components that have not been used since the passed KillTime.

Public function

int32

 

NumComponents()

Public function

void

 

Reclaim

(
    UParticleSystemComponent * PSC,
    const float CurrentTimeSeconds
)

Returns a PSC to the pool.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback