- Home /
Question by
Thirdblood · Mar 07, 2012 at 11:49 PM ·
lagencode
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
Comment
Answer by Berenger · Mar 08, 2012 at 12:17 AM
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.
Your answer
Follow this Question
Related Questions
Lag in Game making character jump 1 Answer
Massive Touch Lag on mobile devices? 3 Answers
Why does holding down any button cause ~20-30 FPS loss? 1 Answer
Server Based Networking Reduce Lag 0 Answers
Position icon lags while panning 1 Answer