performance between disable renderer and disable gameObject

Is there a performance difference between disabling an object’s renderer and disabling the gameObject itself?

The problem with using gameObject.active = false is that my script can’t find it anymore, so I was thinking of doing gameObject.renderer.enabled = false, but if I do that, will the gameObject still be computed by the engine?

Stephane

Yes, turning the renderer off still causes the engine to make computations on it, for example physics.

gameObject.active has been replaced by SetActiveRecursively

see: