Skip to content

ECSOptions.OnFixedStepsDiscarded Property

Definition

Namespace: Brine2D.ECS

Optional callback invoked when the fixed-update accumulator is clamped because a frame took longer than MaxFixedStepsPerFrame × FixedTimeStepMs. The argument is the number of milliseconds of simulation time that were discarded.

C#
public System.Action<double>? OnFixedStepsDiscarded { get; set; }

Property Value

System.Action<System.Double>

Remarks

Use this to route simulation stall events to telemetry or logging in release builds. The callback must not throw; any exception it raises is silently ignored.