unreal.GenlockedFixedRateCustomTimeStep

class unreal.GenlockedFixedRateCustomTimeStep(outer: Optional[Object] = None, name: Union[Name, str] = 'None')

Bases: GenlockedCustomTimeStep

Control the Engine TimeStep via a fixed frame rate.

Philosophy:

  • Quantized increments but keeping up with platform time.

  • FApp::GetDeltaTime
    • Forced to a multiple of the desired FrameTime.

  • FApp::GetCurrentTime
    • Incremented in multiples of the desired FrameTime.

    • Corresponds to platform time minus any fractional FrameTime.

C++ Source:

  • Module: TimeManagement

  • File: GenlockedFixedRateCustomTimeStep.h

Editor Properties: (see get_editor_property/set_editor_property)

  • force_single_frame_delta_time (bool): [Read-Write] Force Single Frame Delta Time: When true, delta time will always be 1/FrameRate, regardless of how much real time has elapsed

  • frame_rate (FrameRate): [Read-Write] Frame Rate: Desired frame rate

  • should_block (bool): [Read-Write] Should Block: Indicates that this custom time step should block to enforce the specified frame rate. Set to false if this is enforced elsewhere.