|
Call this function to set the maximum memory used by spacial division for dynamic object early collision culling. See TA::Physics::SetSpacialDivisionType for info on spacial sub division.
The default value is 262144, or in hex, 0x40000. The units is in bytes.
Making the amount of memory too low may cause a performance hit.
- Parameters:
-
| nSpacialDivisionMaxMemory |
| | The new maximum memory allowed, in bytes, for spacial division. |
- See Also:
- TA::Physics::GetSpacialDivisionMaxMemory, TA::Physics::SetSpacialDivisionType and
TA::Physics::SetSpacialDivisionMinSize.
- Note:
- Any changes to this value will not be made effective until a call to TA::Physics::SetupSimulation. Note that SetupSimulation is automatically called from TA::Physics::Update, TA::Physics::AddDynamicObject and TA::Physics::AddStaticObject. Calling TA::Physics::SetupSimulation may result memory reallocation and large processor overhead. Changing this value frequently will result in performance loss.
|