Files
UnrealEngineUWP/Engine/Source/Programs/CrashReportClient/Private/MainLoopTiming.h
Ryan Durand 9ef3748747 Updating copyrights for Engine Programs.
#rnx
#rb none
#jira none

#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869242 in //Fortnite/Release-12.00/... via CL 10869536
#ROBOMERGE-BOT: FORTNITE (Main -> Dev-EngineMerge) (v613-10869866)

[CL 10870955 by Ryan Durand in Main branch]
2019-12-26 23:01:54 -05:00

46 lines
924 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
/** Options governing what the main loop object should Tick */
namespace EMainLoopOptions
{
enum Type
{
/** No flags set: only update the core ticker */
CoreTickerOnly = 0,
/** Call Tick on Slate */
UsingSlate = 0x01,
/** Default to running Slate if no options passed */
Default = UsingSlate
};
}
/**
* Calls Tick on Slate and the core ticker at a set rate
*/
class FMainLoopTiming
{
public:
/**
* Constructor: set up initial timing values
*/
explicit FMainLoopTiming(float IdealTickRate, EMainLoopOptions::Type Options = EMainLoopOptions::Default);
/**
* Tick core application objects and throttle rate as requested in constructor
*/
void Tick();
private:
/** Interval between each Tick that we're aiming for */
float IdealFrameTime;
/** Should Slate's Tick be called? */
bool bTickSlate;
};