Navigation
Unreal Engine C++ API Reference > Plugins > GeometryCacheStreamer
Inheritance Hierarchy
- IGeometryCacheStream
- FGeometryCacheStreamBase
- FGeometryCacheUsdStream
References
Module | GeometryCacheStreamer |
Header | /Engine/Plugins/Runtime/GeometryCache/Source/GeometryCacheStreamer/Public/GeometryCacheStreamBase.h |
Include | #include "GeometryCacheStreamBase.h" |
Syntax
class FGeometryCacheStreamBase : public IGeometryCacheStream
Remarks
Base class for GeometryCache stream for use with the GeometryCacheStreamer Besides implementing the basic functionalities expected of the stream, it implements basic memory statistics and management for use by the streamer. Derived classes need to implement a way to retrieve the mesh data for a frame through GetMeshData.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bCacheNeedsUpdate | |
![]() |
std::atomic< bool > | bCancellationRequested | |
![]() |
int32 | CurrentFrameIndex | |
![]() |
FGeometryCacheStreamDetails | Details | |
![]() |
FFrameIndexToMeshData | FramesAvailable | |
![]() |
FRWLock | FramesAvailableLock | |
![]() |
TArray< int32 > | FramesNeeded | |
![]() |
TArray< FGeometryCacheStreamReadRequest * > | FramesRequested | |
![]() |
TArray< int32 > | FramesToBeCached | |
![]() |
float | MaxCachedDuration | |
![]() |
int32 | MaxCachedFrames | |
![]() |
float | MaxMemAllowed | |
![]() |
float | MemoryUsed | |
![]() |
TArray< int32 > | ReadIndices | |
![]() |
TArray< FGeometryCacheStreamReadRequest * > | ReadRequestsPool | |
![]() |
FGeometryCacheStreamStats | Stats |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FGeometryCacheStreamBase
(
int32 ReadConcurrency, |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | DecrementMemoryStat
(
const FGeometryCacheMeshData& MeshData |
|
![]() |
void | GetMeshData
(
int32 FrameIndex, |
Derived class must provide a way to get the mesh data for the given FrameIndex, called from worker threads |
![]() |
void | IncrementMemoryStat
(
const FGeometryCacheMeshData& MeshData |
|
![]() |
void | LoadFrameData
(
int32 FrameIndex |
|
![]() ![]() |
void | PrepareRead () |
Function called from main thread to prepare for GetMeshData |
![]() |
void | UpdateCurrentFrameIndex
(
int32 FrameIndex |
Updates the current position in the stream |
![]() |
void | UpdateFramesNeeded
(
int32 StartIndex, |
Overridden from IGeometryCacheStream
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
int32 | Cancel the scheduled read requests. Return the number of requests that were canceled | |
![]() ![]() |
bool | GetFrameData
(
int32 FrameIndex, |
Get the MeshData at given FrameIndex without waiting for data to be ready Return true if MeshData could be retrieved |
![]() ![]() |
uint32 | Return the number of frame indices needed to be loaded | |
![]() ![]() ![]() |
const FGeometryCacheStreamStats & | Return the memory usage and related stats for the stream | |
![]() ![]() |
void | Prefetch NumFrames starting from the given StartFrameIndex. | |
![]() ![]() |
bool | Request a read of the next frame as determined by the stream. | |
![]() ![]() |
void | SetLimits
(
float MaxMemoryAllowed, |
Set the memory usage limits for the stream |
![]() ![]() |
void | UpdateRequestStatus
(
TArray< int32 >& OutFramesCompleted |
Update the status of the read requests currently in progress. |
Typedefs
Name | Description |
---|---|
FFrameIndexToMeshData |