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

Streaming manager collection, routing function calls to streaming managers that have been added via AddStreamingManager. 更多...

#include <ContentStreaming.h>

+ 类 FStreamingManagerCollection 继承关系图:

Public 成员函数

virtual void AddLevel (class ULevel *Level) override
 Adds a ULevel to the streaming manager.
 
ENGINE_API void AddStreamingManager (IStreamingManager *StreamingManager)
 Adds a streaming manager to the array of managers to route function calls to. 更多...
 
virtual int32 BlockTillAllRequestsFinished (float TimeLimit=0.0f, bool bLogResults=false) override
 Blocks till all pending requests are fulfilled. 更多...
 
virtual void CancelForcedResources () override
 Cancels the timed Forced resources (i.e used the Kismet action "Stream In Textures").
 
void DisableResourceStreaming ()
 Disables resource streaming. 更多...
 
void EnableResourceStreaming ()
 Enables resource streaming, previously disabled with enableResourceStreaming. 更多...
 
virtual bool Exec (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) override
 Allows the streaming manager to process exec commands. 更多...
 
ENGINE_API FStreamingManagerCollection ()
 Default constructor, initializing all member variables.
 
ENGINE_API IAnimationStreamingManager & GetAnimationStreamingManager () const
 Gets a reference to the Animation Streaming Manager interface
 
ENGINE_API IAudioStreamingManager & GetAudioStreamingManager () const
 Gets a reference to the Audio Streaming Manager interface
 
virtual int32 GetNumWantingResources () const override
 Returns the number of resources that currently wants to be streamed in.
 
virtual int32 GetNumWantingResourcesID () const override
 Returns the current ID for GetNumWantingResources(). 更多...
 
ENGINE_API IRenderAssetStreamingManager & GetRenderAssetStreamingManager () const
 Get the streaming manager for textures and meshes
 
ENGINE_API IRenderAssetStreamingManager & GetTextureStreamingManager () const
 Gets a reference to the Texture Streaming Manager interface
 
ENGINE_API struct FVirtualTextureChunkStreamingManager & GetVirtualTextureStreamingManager () const
 Gets a reference to the Virtual Texture Streaming Manager
 
ENGINE_API bool IsRenderAssetStreamingEnabled (EStreamableRenderAssetType FilteredAssetType=EStreamableRenderAssetType::None) const
 Checks whether texture/mesh streaming is enabled
 
ENGINE_API bool IsStreamingEnabled () const
 Checks whether any kind of streaming is active
 
FORCEINLINE bool IsTextureStreamingEnabled () const
 Checks whether texture streaming is enabled.
 
virtual void NotifyActorDestroyed (AActor *Actor) override
 Called when a spawned actor is destroyed.
 
virtual void NotifyLevelChange () override
 Notifies manager of "level" change.
 
virtual void NotifyLevelOffset (class ULevel *Level, const FVector &Offset) override
 Notifies manager that level primitives were shifted
 
virtual void NotifyPrimitiveDetached (const UPrimitiveComponent *Primitive) override
 Called when a primitive is detached from an actor or another component.
 
virtual void NotifyPrimitiveUpdated (const UPrimitiveComponent *Primitive) override
 Called when a primitive streaming data needs to be updated.
 
virtual void NotifyPrimitiveUpdated_Concurrent (const UPrimitiveComponent *Primitive) override
 Called when a primitive streaming data needs to be updated in the last stage of the frame.
 
void PropagateLightingScenarioChange () override
 Propagates a change to the active lighting scenario.
 
virtual void RemoveLevel (class ULevel *Level) override
 Removes a ULevel from the streaming manager.
 
ENGINE_API void RemoveStreamingManager (IStreamingManager *StreamingManager)
 Removes a streaming manager from the array of managers to route function calls to. 更多...
 
virtual void SetDisregardWorldResourcesForFrames (int32 NumFrames) override
 Don't stream world resources for the next NumFrames.
 
void SetNumIterationsForNextFrame (int32 NumIterations)
 Sets the number of iterations to use for the next time UpdateResourceStreaming is being called. 更多...
 
virtual int32 StreamAllResources (float TimeLimit=0.0f) override
 Streams in/out all resources that wants to and blocks until it's done. 更多...
 
virtual ENGINE_API void Tick (float DeltaTime, bool bProcessEverything=false) override
 Calls UpdateResourceStreaming(), and does per-frame cleaning. 更多...
 
virtual void UpdateResourceStreaming (float DeltaTime, bool bProcessEverything=false) override
 Updates streaming, taking into account all current view infos. 更多...
 
- Public 成员函数 继承自 IStreamingManager
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
 

Protected 属性

IAnimationStreamingManager * AnimationStreamingManager
 The animation streaming manager, should always exist
 
IAudioStreamingManager * AudioStreamingManager
 The audio streaming manager, should always exist
 
int32 DisableResourceStreamingCount
 Count of how many nested DisableResourceStreaming's were called - will enable when this is 0
 
float LoadMapTimeLimit
 Maximum number of seconds to block in StreamAllResources(), by default (.ini setting).
 
int32 NumIterations
 Number of iterations to perform. 更多...
 
FRenderAssetStreamingManager * RenderAssetStreamingManager
 The currently added texture streaming manager. 更多...
 
TArray< IStreamingManager * > StreamingManagers
 Array of streaming managers to route function calls to
 
FVirtualTextureChunkStreamingManager * VirtualTextureStreamingManager
 The virtual texture streaming manager, should always exist
 
- Protected 属性 继承自 IStreamingManager
int32 NumWantingResources
 Number of resources that currently wants to be streamed in.
 
int32 NumWantingResourcesCounter
 The current counter for NumWantingResources. 更多...
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 IStreamingManager
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 成员函数 继承自 IStreamingManager
void SetupViewInfos (float DeltaTime)
 Sets up the CurrentViewInfos array based on PendingViewInfos, LastingViewInfos and SlaveLocations. 更多...
 
- 静态 Protected 成员函数 继承自 IStreamingManager
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 属性 继承自 IStreamingManager
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.
 

详细描述

Streaming manager collection, routing function calls to streaming managers that have been added via AddStreamingManager.

成员函数说明

◆ AddStreamingManager()

ENGINE_API void FStreamingManagerCollection::AddStreamingManager ( IStreamingManager *  StreamingManager)

Adds a streaming manager to the array of managers to route function calls to.

参数
StreamingManagerStreaming manager to add

◆ BlockTillAllRequestsFinished()

virtual int32 FStreamingManagerCollection::BlockTillAllRequestsFinished ( float  TimeLimit = 0.0f,
bool  bLogResults = false 
)
overridevirtual

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.

实现了 IStreamingManager.

◆ DisableResourceStreaming()

void FStreamingManagerCollection::DisableResourceStreaming ( )

Disables resource streaming.

Enable with EnableResourceStreaming. Disable/enable can be called multiple times nested

◆ EnableResourceStreaming()

void FStreamingManagerCollection::EnableResourceStreaming ( )

Enables resource streaming, previously disabled with enableResourceStreaming.

Disable/enable can be called multiple times nested (this will only actually enable when all disables are matched with enables)

◆ Exec()

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

Allows the streaming manager to process exec commands.

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

重载 IStreamingManager .

◆ GetNumWantingResourcesID()

virtual int32 FStreamingManagerCollection::GetNumWantingResourcesID ( ) const
overridevirtual

Returns the current ID for GetNumWantingResources().

The ID 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 ID with what it was when the changes were made.

重载 IStreamingManager .

◆ RemoveStreamingManager()

ENGINE_API void FStreamingManagerCollection::RemoveStreamingManager ( IStreamingManager *  StreamingManager)

Removes a streaming manager from the array of managers to route function calls to.

参数
StreamingManagerStreaming manager to remove

◆ SetNumIterationsForNextFrame()

void FStreamingManagerCollection::SetNumIterationsForNextFrame ( int32  NumIterations)

Sets the number of iterations to use for the next time UpdateResourceStreaming is being called.

This is being reset to 1 afterwards.

参数
NumIterationsNumber of iterations to perform the next time UpdateResourceStreaming is being called.

◆ StreamAllResources()

virtual int32 FStreamingManagerCollection::StreamAllResources ( float  TimeLimit = 0.0f)
overridevirtual

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.

重载 IStreamingManager .

◆ Tick()

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

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

重载 IStreamingManager .

◆ UpdateResourceStreaming()

virtual void FStreamingManagerCollection::UpdateResourceStreaming ( float  DeltaTime,
bool  bProcessEverything = false 
)
overridevirtual

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

实现了 IStreamingManager.

类成员变量说明

◆ NumIterations

int32 FStreamingManagerCollection::NumIterations
protected

Number of iterations to perform.

Gets reset to 1 each frame.

◆ RenderAssetStreamingManager

FRenderAssetStreamingManager* FStreamingManagerCollection::RenderAssetStreamingManager
protected

The currently added texture streaming manager.

Can be NULL


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