Description
The MaxFixedUpdates
property of the Scene
class specifies the maximum number of fixed updates that can occur in a single frame. This property is marked as obsolete and has been moved to Sandbox.ProjectSettings.PhysicsSettings
. It is an integer value that determines how many times the physics engine can update in a single frame, which can be crucial for maintaining stable physics simulations, especially when the frame rate is low.
Usage
Since MaxFixedUpdates
is obsolete, it is recommended to use the updated property in Sandbox.ProjectSettings.PhysicsSettings
for configuring the maximum number of fixed updates. This ensures that your project is using the latest settings and avoids potential issues with deprecated properties.
Example
// Example of accessing the MaxFixedUpdates property (obsolete)
int maxUpdates = scene.MaxFixedUpdates;
// Recommended approach: Access the updated property in PhysicsSettings
int maxUpdates = Sandbox.ProjectSettings.PhysicsSettings.MaxFixedUpdates;