You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
* 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]
37 lines
929 B
C++
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;
|
|
};
|