文档

Unity Engine

Unity Engine

useMultithreading

Should physics simulation use multithreading?
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Remarks

Turning on multithreading executes the simulation steps using the job system, and uses the options in PhysicsJobOptions2D to control how to achieve that. Turning off multithreading executes the simulation only on the main thread, and does not use the options in PhysicsJobOptions2D.