Control the Engine TimeStep via a fixed time step and limit RTF(Real Time Factor).
More...
#include <RRLimitRTFFixedSizeCustomTimeStep.h>
Control the Engine TimeStep via a fixed time step and limit RTF(Real Time Factor).
Main logic is copied from UGenlockedFixedRateCustomTimeStep and UEngineCustomTimeStep.
- See also
- UEngineCustomTimeStep
-
UGenlockedFixedRateCustomTimeStep
UCLASS(Blueprintable, editinlinenew, meta = (DisplayName = "Limit RTF Fixed Rate"))
◆ GetStepSize()
virtual float URRLimitRTFFixedSizeCustomTimeStep::GetStepSize |
( |
| ) |
const |
|
virtual |
Get the Step Size object.
- Returns
- float
◆ GetSynchronizationState()
virtual ECustomTimeStepSynchronizationState URRLimitRTFFixedSizeCustomTimeStep::GetSynchronizationState |
( |
| ) |
const |
|
overridevirtual |
Overriden function from UEngineCustomTimeStep.
- See also
- UEngineCustomTimeStep
- Returns
- ECustomTimeStepSynchronizationState
◆ GetTargetRTF()
virtual float URRLimitRTFFixedSizeCustomTimeStep::GetTargetRTF |
( |
| ) |
const |
|
virtual |
Get the Target R T F object.
- Returns
- float
◆ Initialize()
virtual bool URRLimitRTFFixedSizeCustomTimeStep::Initialize |
( |
UEngine * |
InEngine | ) |
|
|
overridevirtual |
Overriden function from UEngineCustomTimeStep.
- See also
- UEngineCustomTimeStep
- Parameters
-
- Returns
- true
-
false
◆ SetStepSize()
virtual void URRLimitRTFFixedSizeCustomTimeStep::SetStepSize |
( |
const float |
InStepSize | ) |
|
|
virtual |
Set the Step Size object.
- Parameters
-
◆ SetTargetRTF()
virtual void URRLimitRTFFixedSizeCustomTimeStep::SetTargetRTF |
( |
const float |
InTargetRTF | ) |
|
|
virtual |
Set the Target R T F object.
- Parameters
-
◆ Shutdown()
virtual void URRLimitRTFFixedSizeCustomTimeStep::Shutdown |
( |
UEngine * |
InEngine | ) |
|
|
overridevirtual |
◆ UpdateTimeStep()
virtual bool URRLimitRTFFixedSizeCustomTimeStep::UpdateTimeStep |
( |
UEngine * |
InEngine | ) |
|
|
overridevirtual |
Overriden function from UEngineCustomTimeStep.
- See also
- UEngineCustomTimeStep
- Parameters
-
- Returns
- true
-
false
◆ WaitForSync()
virtual bool URRLimitRTFFixedSizeCustomTimeStep::WaitForSync |
( |
| ) |
|
|
virtual |
Main logic to update simulation time.
Simulation time += StepSize and wait not to over TargetRTF.
- Returns
- true
-
false
◆ LastPlatformTime
double URRLimitRTFFixedSizeCustomTimeStep::LastPlatformTime = 0 |
◆ StepSize
float URRLimitRTFFixedSizeCustomTimeStep::StepSize = 0.01f |
◆ TargetRTF
float URRLimitRTFFixedSizeCustomTimeStep::TargetRTF = 1.f |
The documentation for this class was generated from the following file: