Why does screen lag when taking screenshot?

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

2 Answers

2

I doubt it is that line causing the lag. I’d say it’s Apply. You can’t do anything about it with Unity indie, as far as I know.

What can you do about it with Unity Pro?