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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss