- Home /
Texture2D.ReadPixels is too slow on mobile. (Unity Free)
I have made a page turning effect for the transition between levels in my game. I'm using Unity Free so I can't use render textures and I have to use Texture2D.ReadPixels instead. Here's how it works:
The player reaches the end of a level.
I call ReadPixels once on the entire screen, into a pre-allocated texture.
I assign that texture to a material on the page turning mesh, which I animate over 1 second.
I load the next level immediately and have the page turning mesh render in front of everything.
On PC, the ReadPixels call takes just over 0.01s. That's pretty bad, but isn't actually a problem. The problem is that I'm making my game for Android, where the call takes just over 0.5s. That's half a second in which the game is completely frozen, which is not an acceptable cost for a useless (though cool looking) transition animation.
Is there any way I can speed up the way I'm capturing the screen into a texture without needing Unity Pro for render textures?
Answer by tanoshimi · Aug 26, 2014 at 10:49 AM
No. The solution is, quite simply, to buy Unity Pro.
Your answer

Follow this Question
Related Questions
Unity Free and Mobile Platforms 1 Answer
Exporting XML files to Android 1 Answer
How do I make on screen buttons in Android? 4 Answers
Blurry Text using Textmesh Pro on android device 2 Answers
Which mobile devices do not support stencil buffers? 1 Answer