dWorldSetStepMemoryReservationPolicy

@brief Set memory reservation policy for world to be used with simulation stepping functions

The function allows to customize reservation policy to be used for internal memory which is allocated to aid simulation for a world. By default, values of @c dWORLDSTEP_RESERVEFACTOR_DEFAULT and @c dWORLDSTEP_RESERVESIZE_DEFAULT are used.

Passing @a policyinfo argument as NULL results in reservation policy being reset to defaults as if the world has been just created. The content of @a policyinfo structure is copied internally and does not need to remain valid after the call returns.

If the world uses working memory sharing, changing memory reservation policy affects all the worlds linked together.

Failure result status means a memory allocation failure.

@param w The world to change memory reservation policy for. @param policyinfo Null or a pointer to policy descriptor structure. @returns 1 for success and 0 for failure.

@ingroup world @see dWorldUseSharedWorkingMemory

extern (C) nothrow
int
dWorldSetStepMemoryReservationPolicy

Meta