Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


useConsistencySorting

Should physics simulation sort multi-threaded results to maintain processing order consistency?
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public bool useConsistencySorting { get; set; }

Remarks

When executing simulation steps on multiple CPU threads, separate batches of data are produced. Processing these separate batches reduces determinism in processing order, although produces faster results. If maintaining a consistent processing order becomes important to the simulation, then set this option to true. However, this involves sorting results, which can reduce overall performance.