Navigation
API > API/Plugins > API/Plugins/ConcertSyncCore
Keeps track of when objects are processed. Allows querying of whether in a given frame an object is allowed to be processed (or whether it is too early).
This keeps a TMap
| Name | FFrequencyTracker |
| Type | class |
| Header File | /Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Public/Replication/Processing/Proxy/FrequencyTracker.h |
| Include Path | #include "Replication/Processing/Proxy/FrequencyTracker.h" |
Syntax
class FFrequencyTracker
Derived Classes
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FPlatformSecondsTimestamp | double | Holds the return value of FPlatformTime::Seconds() | Replication/Processing/Proxy/FrequencyTracker.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ObjectsToLastProcessed | TMap< FConcertObjectInStreamID, FPlatformSecondsTimestamp > | It is important to call CleanseOutdatedObjects to avoid this mapping leaking objects that used to be replicated. | Replication/Processing/Proxy/FrequencyTracker.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CleanseOutdatedObjects
(
const FPlatformSecondsTimestamp CutoffTime |
Removes all tracked objects were last processed before CutoffTime. | Replication/Processing/Proxy/FrequencyTracker.h | |
void OnProcessObject
(
const FConcertObjectInStreamID& Object, |
Called when an object is processed. | Replication/Processing/Proxy/FrequencyTracker.h | |
ECanProcessObject TrackAndCheckObject
(
const FConcertObjectInStreamID& ObjectPath, |
Ensures ObjectPath is tracked in the cache and returns whether it can be processed now given its frequency settings. | Replication/Processing/Proxy/FrequencyTracker.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const TMap< FConcertObjectInStreamID, FPlatformSecondsTimestamp > & GetObjectsToLastProcessed() |
For unit tests. | Replication/Processing/Proxy/FrequencyTracker.h |