# CookForFasterSimulation

> Toggle between cooking for faster simulation or faster cooking time.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.PhysicsModule

```csharp
CookForFasterSimulation = 2
```

### Remarks

When set, this runs some extra steps to guarantee the resulting mesh is optimal for run-time performance. This affects  performance of the physics queries as well as contacts generation. If not set, produces the result as fast as possible. Consequently, the cooked MeshCollider might not be optimal.
