Found the cause of the CPhysicsObject::IsAsleep lag and marked it with an assert to annoy someone to the point of fixing it.
Various other changes.