I am using the example for encode to PNG on the unity website and I get lag everytime a screenshot is taken.
The line causing the lag is tex.ReadPixels (Rect(0, 0, width, height), 0, 0);
Any idea why this occurs or how to reduce it?
http://unity3d.com/support/documentation/ScriptReference/Texture2D.EncodeToPNG.html