Writing to Textures too slow for iPhone?

I wrote a simple script to generate a GUITexture and fill it with random pixels every frame to give a television screen static/white noise effect.

It runs about 25fps in the editor but on iPhone 3G crawls at 4fps.

Is it asking too much to animate textures per pixel on iPhone?

Yes, it’s too much. Instead of doing that, just make one “random pixels” texture and randomly animate the UV offset, then you have zero texture uploads after the first one and the effect looks pretty much the same.

–Eric

I had a conversation with ReJ about that and the way it is currently implemented is slow, but will be fixed for some later version. I tried that too writing each frame a texture but it was slow as hell - just like you encountered too. :slight_smile:

Thanks Eric, that’s a great idea - I’m going to try that and see how it looks.