Navigation
API > API/Plugins > API/Plugins/ConcertSyncCore > API/Plugins/ConcertSyncCore/FFrequencyTracker
Description
Ensures ObjectPath is tracked in the cache and returns whether it can be processed now given its frequency settings.
Note that multiple streams may be replicating the object and each stream has a different frequency settings for an object, e.g. object StaticMeshActor in stream A may be replicating RelativeLocation at 60 FPS and in stream B may be replicating RelativeRotation at 30 FPS (contrived example).
The object can send immediately when it is first added, i.e. TrackAndCheckObject returns ECanProcessObject::CanProcess if the object was not yet registered.
| Name | TrackAndCheckObject |
| Type | function |
| Header File | /Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Public/Replication/Processing/Proxy/FrequencyTracker.h |
| Include Path | #include "Replication/Processing/Proxy/FrequencyTracker.h" |
| Source | /Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Private/Replication/Processing/Proxy/FrequencyTracker.cpp |
ECanProcessObject TrackAndCheckObject
(
const FConcertObjectInStreamID & ObjectPath,
const FConcertObjectReplicationSettings & ReplicationSettings,
const FPlatformSecondsTimestamp NowAsPlatformSeconds
)
Whether the object can be processed now
Parameters
| Name | Remarks |
|---|---|
| ObjectPath | The object that should be processed |
| ReplicationSettings | The frequency settings for the object. |
| NowAsPlatformSeconds | The current time - result of FPlatformTime::Seconds(). Pass this in to avoid excessive time spent on timing. |