Files
UnrealEngineUWP/Engine/Source/Programs/CrashReportClient/Private/MainLoopTiming.h
ben marsh 2b46ba7b94 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 4662404 in //UE4/Main/...
#ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking)

[CL 4662413 by ben marsh in Dev-Networking branch]
2018-12-14 13:44:01 -05:00

46 lines
934 B
C++

// Copyright 1998-2019 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;
};