Navigation
API > API/Plugins > API/Plugins/MeshPartitionEditor
| Name | FModifierGraphCache |
| Type | class |
| Header File | /Engine/Plugins/Experimental/MeshPartition/Source/MeshPartitionEditor/Public/MeshPartitionModifierGraphCache.h |
| Include Path | #include "MeshPartitionModifierGraphCache.h" |
Syntax
class FModifierGraphCache
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FModifierGraphCache() |
MeshPartitionModifierGraphCache.h |
Structs
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FBaseGroupGuid | FGuid | MeshPartitionModifierGraphCache.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BaseMeshMemoryUsedMB | double | Current memory used by the cache to store full merged base meshes. | MeshPartitionModifierGraphCache.h | |
| BaseViewCacheData | TMap< FGuid, TSharedPtr< FBaseGroupViewCacheData > > | Map of base groups to that group's cache data. | MeshPartitionModifierGraphCache.h | |
| BaseViewCacheDataMutex | FMutex | Locks the BaseViewCacheData and LRUModifier data. | MeshPartitionModifierGraphCache.h | |
| LayersToCacheMutex | FRWLock | Mutex to lock access to the list of layers to cache. | MeshPartitionModifierGraphCache.h | |
| LeastRecentlyUsedModifiers | TLruCache< FSoftObjectPath, TPair< FBaseGroupGuid, double > > | LruCache which stores the most recently used modifiers so we can evict modifiers which have not been used across all base sections recently. | MeshPartitionModifierGraphCache.h | |
| MergedBaseCache | TLruCache< FGuid, FMergedBaseCacheEntry > | MeshPartitionModifierGraphCache.h | ||
| MergedBaseCacheMutex | FRWLock | Mutex to lock access to the LruCache | MeshPartitionModifierGraphCache.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CacheBaseGroupViewCacheData
(
const FGuid& InBaseGroupCacheKey, |
Writes the InBaseGroupCacheData into the persistent cache, moving the data out of the input parameter. | MeshPartitionModifierGraphCache.h | |
| Stores a new mesh result in the cache with the corresponding cache key. | MeshPartitionModifierGraphCache.h | ||
void Clear() |
Clears all cache entries and resets the cache. | MeshPartitionModifierGraphCache.h | |
bool CopyBaseGroupViewCacheData
(
const FGuid& InBaseGroupKey, |
Copies all cache entries for the passed set of modifier guids in a given base set into the output cache data. | MeshPartitionModifierGraphCache.h | |
| Retrieves a copy of an entry of the cache, if it exists. | MeshPartitionModifierGraphCache.h | ||
double GetMergedBaseCacheMemoryUsageMB() |
Returns the current memory usage of the view cache in MB. | MeshPartitionModifierGraphCache.h | |
double GetTotalMemoryUsageMB() |
Returns the current memory usage of the cache in MB. | MeshPartitionModifierGraphCache.h | |
double GetViewCacheMemoryUsageMB() |
Returns the current memory usage of the view cache in MB. | MeshPartitionModifierGraphCache.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool IsCachingEnabled() |
MeshPartitionModifierGraphCache.h |