# SetPhysicsSleeping

## Description

Sets the ability of dynamic bodies to sleep when they are not moving, this dramatically improves performance when dynamic bodies have settled into their final positions. Turning it off is only useful for benchmarking when you want to keep the CPU active processing all bodies all the time. Default is on.

## Definition

SetPhysicsSleeping( mode )

void agk::SetPhysicsSleeping( int mode )

## Parameters

- mode - 0 to disable sleeping, 1 to turn it on