Files
UnrealEngineUWP/Engine/Source/Runtime/TimeManagement/Public/FixedFrameRateCustomTimeStep.h
henrik karlsson 5db685f97d [Engine]
* Moved dllexport from type to methods/staticvar in all Engine runtime code. This improves compile times, memory and performance in dll builds

[CL 26082269 by henrik karlsson in ue5-main branch]
2023-06-17 18:13:06 -04:00

37 lines
929 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreTypes.h"
#include "Engine/EngineCustomTimeStep.h"
#include "Misc/AssertionMacros.h"
#include "Misc/FrameRate.h"
#include "UObject/ObjectMacros.h"
#include "UObject/UObjectGlobals.h"
#include "FixedFrameRateCustomTimeStep.generated.h"
class UObject;
/**
* Class to control the Engine TimeStep via a FixedFrameRate
*/
UCLASS(Abstract, MinimalAPI)
class UFixedFrameRateCustomTimeStep : public UEngineCustomTimeStep
{
GENERATED_UCLASS_BODY()
public:
/** Get The fixed FrameRate */
TIMEMANAGEMENT_API virtual FFrameRate GetFixedFrameRate() const PURE_VIRTUAL(UFixedFrameRateCustomTimeStep::GetFixedFrameRate, return GetFixedFrameRate_PureVirtual(););
protected:
/** Default behavior of the engine. Used FixedFrameRate */
TIMEMANAGEMENT_API void WaitForFixedFrameRate() const;
private:
FFrameRate GetFixedFrameRate_PureVirtual() const;
};