Skip to content

Engine → ECS

system_phase.h

The phases of one engine frame, in execution order. The fixed-step phases run zero or more times per frame.

Structs

File Description
frame_info Per-frame timing filled by the engine before every scheduler::run_phase call.

Enumerations

system_phase

enum class system_phase : u8 {
    FRAME_BEGIN,
    FIXED_UPDATE,
    PHYSICS_STEP,
    FIXED_END,
    UPDATE,
    LATE_UPDATE,
    TRANSFORM,
    SYNC,
    EXTRACT,
    FRAME_END,
    COUNT
};

The phases of one engine frame, in execution order. The fixed-step phases run zero or more times per frame.

Constants

Name Type Value Description
SYSTEM_PHASE_COUNT inline constexpr u32 static_cast<u32>(system_phase::COUNT) Number of real phases (COUNT excluded).

Functions

Public

to_string

[[nodiscard]] CONJURE_API std::string_view to_string(
    system_phase phase) noexcept;

The upper-case enumerator name of a phase ("UPDATE"); "COUNT" for COUNT and out-of-range values.