engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Protected 成员函数 | 静态 Protected 成员函数 | Protected 属性 | 静态 Protected 属性 | 所有成员列表
IStreamingManager结构体 参考abstract

Pure virtual base class of a streaming manager. 更多...

#include <ContentStreaming.h>

+ 类 IStreamingManager 继承关系图:

Public 成员函数

virtual void AddLevel (class ULevel *Level)=0
 Adds a ULevel that has already prepared StreamingData to the streaming manager.
 
ENGINE_API void AddViewInformation (const FVector &ViewOrigin, float ScreenSize, float FOVScreenSize, float BoostFactor=1.0f, bool bOverrideLocation=false, float Duration=0.0f, TWeakObjectPtr< AActor > InActorToBoost=NULL)
 Adds the passed in view information to the static array. 更多...
 
ENGINE_API void AddViewSlaveLocation (const FVector &SlaveLocation, float BoostFactor=1.0f, bool bOverrideLocation=false, float Duration=0.0f)
 Queue up view "slave" locations to the streaming system. 更多...
 
virtual int32 BlockTillAllRequestsFinished (float TimeLimit=0.0f, bool bLogResults=false)=0
 Blocks till all pending requests are fulfilled. 更多...
 
virtual void CancelForcedResources ()=0
 Cancels the timed Forced resources (i.e used the Kismet action "Stream In Textures").
 
virtual bool Exec (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar)
 Allows the streaming manager to process exec commands. 更多...
 
ENGINE_API int32 GetNumViews () const
 Returns the number of view infos.
 
virtual int32 GetNumWantingResources () const
 Returns the number of resources that currently wants to be streamed in.
 
virtual int32 GetNumWantingResourcesID () const
 Returns the current ID for GetNumWantingResources(). 更多...
 
ENGINE_API const FStreamingViewInfo & GetViewInformation (int32 ViewIndex) const
 Returns the view info by the specified index.
 
virtual void NotifyActorDestroyed (AActor *Actor)
 Called when a spawned actor is destroyed.
 
virtual void NotifyLevelChange ()=0
 Notifies manager of "level" change.
 
virtual void NotifyLevelOffset (class ULevel *Level, const FVector &Offset)=0
 Notifies manager that level primitives were shifted
 
virtual void NotifyPrimitiveDetached (const UPrimitiveComponent *Primitive)
 Called when a primitive is detached from an actor or another component.
 
virtual void NotifyPrimitiveUpdated (const UPrimitiveComponent *Primitive)
 Called when a primitive streaming data needs to be updated.
 
virtual void NotifyPrimitiveUpdated_Concurrent (const UPrimitiveComponent *Primitive)
 Called when a primitive streaming data needs to be updated in the last stage of the frame.
 
virtual void PropagateLightingScenarioChange ()
 Propagates a change to the active lighting scenario.
 
virtual void RemoveLevel (class ULevel *Level)=0
 Removes a ULevel from the streaming manager.
 
void RemoveStreamingViews (ERemoveStreamingViews RemovalType)
 Removes streaming views from the streaming manager. 更多...
 
virtual void SetDisregardWorldResourcesForFrames (int32 NumFrames)=0
 Don't stream world resources for the next NumFrames.
 
virtual int32 StreamAllResources (float TimeLimit=0.0f)
 Streams in/out all resources that wants to and blocks until it's done. 更多...
 
virtual ENGINE_API void Tick (float DeltaTime, bool bProcessEverything=false)
 Calls UpdateResourceStreaming(), and does per-frame cleaning. 更多...
 
virtual void UpdateResourceStreaming (float DeltaTime, bool bProcessEverything=false)=0
 Updates streaming, taking into account all current view infos. 更多...
 
virtual ~IStreamingManager ()
 Virtual destructor
 

静态 Public 成员函数

static ENGINE_API struct FStreamingManagerCollection * Get_Concurrent ()
 Same as get but could fail if state not allocated or shutdown.
 
static ENGINE_API bool HasShutdown ()
 Checks if the streaming manager has already been shut down.
 

Protected 成员函数

void SetupViewInfos (float DeltaTime)
 Sets up the CurrentViewInfos array based on PendingViewInfos, LastingViewInfos and SlaveLocations. 更多...
 

静态 Protected 成员函数

static void AddViewInfoToArray (TArray< FStreamingViewInfo > &ViewInfos, const FVector &ViewOrigin, float ScreenSize, float FOVScreenSize, float BoostFactor, bool bOverrideLocation, float Duration, TWeakObjectPtr< AActor > InActorToBoost)
 Adds the passed in view information to the static array. 更多...
 
static void RemoveViewInfoFromArray (TArray< FStreamingViewInfo > &ViewInfos, const FVector &ViewOrigin)
 Remove view infos with the same location from the given array. 更多...
 

Protected 属性

int32 NumWantingResources
 Number of resources that currently wants to be streamed in.
 
int32 NumWantingResourcesCounter
 The current counter for NumWantingResources. 更多...
 

静态 Protected 属性

static bool bPendingRemoveViews
 Set when Tick() has been called. 更多...
 
static ENGINE_API TArray< FStreamingViewInfo > CurrentViewInfos
 Current collection of views that need to be taken into account for streaming. 更多...
 
static TArray< FStreamingViewInfo > LastingViewInfos
 Views that stick around for a while. 更多...
 
static TArray< FStreamingViewInfo > PendingViewInfos
 Pending views. 更多...
 
static TArray< FSlaveLocation > SlaveLocations
 Collection of view locations that will be added at the next call to AddViewInformation.
 

详细描述

Pure virtual base class of a streaming manager.

成员函数说明

◆ AddViewInformation()

ENGINE_API void IStreamingManager::AddViewInformation ( const FVector &  ViewOrigin,
float  ScreenSize,
float  FOVScreenSize,
float  BoostFactor = 1.0f,
bool  bOverrideLocation = false,
float  Duration = 0.0f,
TWeakObjectPtr< AActor >  InActorToBoost = NULL 
)

Adds the passed in view information to the static array.

参数
ScreenSizeScreen size
FOVScreenSizeScreen size taking FOV into account
BoostFactorA factor that affects all streaming distances for this location. 1.0f is default. Higher means higher-resolution textures and vice versa.
bOverrideLocationWhether this is an override location, which forces the streaming system to ignore all other regular locations
DurationHow long the streaming system should keep checking this location, in seconds. 0 means just for the next Tick.
InActorToBoostOptional pointer to an actor who's textures should have their streaming priority boosted

◆ AddViewInfoToArray()

static void IStreamingManager::AddViewInfoToArray ( TArray< FStreamingViewInfo > &  ViewInfos,
const FVector &  ViewOrigin,
float  ScreenSize,
float  FOVScreenSize,
float  BoostFactor,
bool  bOverrideLocation,
float  Duration,
TWeakObjectPtr< AActor >  InActorToBoost 
)
staticprotected

Adds the passed in view information to the static array.

参数
ViewInfosArray to add the view to
ViewOriginView origin
ScreenSizeScreen size
FOVScreenSizeScreen size taking FOV into account
BoostFactorA factor that affects all streaming distances for this location. 1.0f is default. Higher means higher-resolution textures and vice versa.
bOverrideLocationWhether this is an override location, which forces the streaming system to ignore all other regular locations
DurationHow long the streaming system should keep checking this location (in seconds). 0 means just for the next Tick.
InActorToBoostOptional pointer to an actor who's textures should have their streaming priority boosted

◆ AddViewSlaveLocation()

ENGINE_API void IStreamingManager::AddViewSlaveLocation ( const FVector &  SlaveLocation,
float  BoostFactor = 1.0f,
bool  bOverrideLocation = false,
float  Duration = 0.0f 
)

Queue up view "slave" locations to the streaming system.

These locations will be added properly at the next call to AddViewInformation, re-using the screensize and FOV settings.

参数
SlaveLocationWorld-space view origin
BoostFactorA factor that affects all streaming distances for this location. 1.0f is default. Higher means higher-resolution textures and vice versa.
bOverrideLocationWhether this is an override location, which forces the streaming system to ignore all other locations
DurationHow long the streaming system should keep checking this location, in seconds. 0 means just for the next Tick.

◆ BlockTillAllRequestsFinished()

virtual int32 IStreamingManager::BlockTillAllRequestsFinished ( float  TimeLimit = 0.0f,
bool  bLogResults = false 
)
pure virtual

Blocks till all pending requests are fulfilled.

参数
TimeLimitOptional time limit for processing, in seconds. Specifying 0 means infinite time limit.
bLogResultsWhether to dump the results to the log.
返回
Number of streaming requests still in flight, if the time limit was reached before they were finished.

在 FAnimationStreamingManager, FLegacyAudioStreamingManager, FCachedAudioStreamingManager , 以及 FStreamingManagerCollection 内被实现.

◆ Exec()

virtual bool IStreamingManager::Exec ( UWorld *  InWorld,
const TCHAR *  Cmd,
FOutputDevice &  Ar 
)
inlinevirtual

Allows the streaming manager to process exec commands.

参数
InWorldWorld context
CmdExec command
ArOutput device for feedback
返回
true if the command was handled

被 FStreamingManagerCollection 重载.

◆ GetNumWantingResourcesID()

virtual int32 IStreamingManager::GetNumWantingResourcesID ( ) const
inlinevirtual

Returns the current ID for GetNumWantingResources().

The ID is incremented every time NumWantingResources is updated by the streaming system (every few frames). Can be used to verify that any changes have been fully examined, by comparing current ID with what it was when the changes were made.

被 FStreamingManagerCollection 重载.

◆ RemoveStreamingViews()

void IStreamingManager::RemoveStreamingViews ( ERemoveStreamingViews  RemovalType)

Removes streaming views from the streaming manager.

This is also called by Tick().

参数
RemovalTypeWhat types of views to remove (all or just the normal views)

◆ RemoveViewInfoFromArray()

static void IStreamingManager::RemoveViewInfoFromArray ( TArray< FStreamingViewInfo > &  ViewInfos,
const FVector &  ViewOrigin 
)
staticprotected

Remove view infos with the same location from the given array.

参数
ViewInfos[in/out] Array to remove the view from
ViewOriginView origin

◆ SetupViewInfos()

void IStreamingManager::SetupViewInfos ( float  DeltaTime)
protected

Sets up the CurrentViewInfos array based on PendingViewInfos, LastingViewInfos and SlaveLocations.

Removes out-dated LastingViewInfos.

参数
DeltaTimeTime since last call in seconds

◆ StreamAllResources()

virtual int32 IStreamingManager::StreamAllResources ( float  TimeLimit = 0.0f)
inlinevirtual

Streams in/out all resources that wants to and blocks until it's done.

参数
TimeLimitMaximum number of seconds to wait for streaming I/O. If zero, uses .ini setting
返回
Number of streaming requests still in flight, if the time limit was reached before they were finished.

被 FStreamingManagerCollection 重载.

◆ Tick()

virtual ENGINE_API void IStreamingManager::Tick ( float  DeltaTime,
bool  bProcessEverything = false 
)
virtual

Calls UpdateResourceStreaming(), and does per-frame cleaning.

Call once per frame.

参数
DeltaTimeTime since last call in seconds
bProcessEverything[opt] If true, process all resources with no throttling limits

被 FStreamingManagerCollection 重载.

◆ UpdateResourceStreaming()

virtual void IStreamingManager::UpdateResourceStreaming ( float  DeltaTime,
bool  bProcessEverything = false 
)
pure virtual

Updates streaming, taking into account all current view infos.

Can be called multiple times per frame.

参数
DeltaTimeTime since last call in seconds
bProcessEverything[opt] If true, process all resources with no throttling limits

在 FAnimationStreamingManager, FLegacyAudioStreamingManager, FCachedAudioStreamingManager , 以及 FStreamingManagerCollection 内被实现.

类成员变量说明

◆ bPendingRemoveViews

bool IStreamingManager::bPendingRemoveViews
staticprotected

Set when Tick() has been called.

The first time a new view is added, it will clear out all old views.

◆ CurrentViewInfos

ENGINE_API TArray<FStreamingViewInfo> IStreamingManager::CurrentViewInfos
staticprotected

Current collection of views that need to be taken into account for streaming.

Emptied every frame.

◆ LastingViewInfos

TArray<FStreamingViewInfo> IStreamingManager::LastingViewInfos
staticprotected

Views that stick around for a while.

Override views are ignored if no movie is playing.

◆ NumWantingResourcesCounter

int32 IStreamingManager::NumWantingResourcesCounter
protected

The current counter for NumWantingResources.

This counter is bumped every time NumWantingResources is updated by the streaming system (every few frames). Can be used to verify that any changes have been fully examined, by comparing current counter with what it was when the changes were made.

◆ PendingViewInfos

TArray<FStreamingViewInfo> IStreamingManager::PendingViewInfos
staticprotected

Pending views.

Emptied every frame.


该结构体的文档由以下文件生成: