UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GenlockedCustomTimeStep.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
9#include "Misc/FrameRate.h"
12
13#include "GenlockedCustomTimeStep.generated.h"
14
15class UObject;
16
20UCLASS(Abstract, MinimalAPI)
22{
24
25protected:
26
28 virtual bool WaitForSync() PURE_VIRTUAL(UGenlockedCustomTimeStep::WaitForSync, return false;);
29
31 TIMEMANAGEMENT_API void UpdateAppTimes(const double& TimeBeforeSync, const double& TimeAfterSync) const;
32
33public:
34 //~ UFixedFrameRateCustomTimeStep interface
35 virtual FFrameRate GetFixedFrameRate() const PURE_VIRTUAL(UGenlockedCustomTimeStep::GetFixedFrameRate, return FFrameRate(24,1););
36
38 virtual FFrameRate GetSyncRate() const { return GetFixedFrameRate(); };
39
41 virtual uint32 GetLastSyncCountDelta() const PURE_VIRTUAL(UGenlockedCustomTimeStep::GetLastSyncCountDelta, return 1;);
42
44 virtual bool IsLastSyncDataValid() const PURE_VIRTUAL(UGenlockedCustomTimeStep::IsLastSyncDataValid, return false;);
45
47 TIMEMANAGEMENT_API virtual uint32 GetExpectedSyncCountDelta() const;
48
50 virtual bool SupportsFormatAutoDetection() const { return false; };
51
53 UPROPERTY()
54 bool bAutoDetectFormat = false;
55
57 static TIMEMANAGEMENT_API TAutoConsoleVariable<int32> CVarExperimentalFieldFlipFix;
58
62 UPROPERTY(EditAnywhere, Category = "Genlock Options")
63 bool bWaitForBothFields = false;
64};
#define PURE_VIRTUAL(func,...)
Definition CoreMiscDefines.h:103
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
const bool
Definition NetworkReplayStreaming.h:178
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition IConsoleManager.h:1792
Definition FixedFrameRateCustomTimeStep.h:23
Definition GenlockedCustomTimeStep.h:22
virtual bool WaitForSync() PURE_VIRTUAL(UGenlockedCustomTimeStep
Definition GenlockedCustomTimeStep.h:28
virtual uint32 GetLastSyncCountDelta() const PURE_VIRTUAL(UGenlockedCustomTimeStep
Definition GenlockedCustomTimeStep.h:41
Definition Object.h:95
@ false
Definition radaudio_common.h:23
Definition FrameRate.h:21