Performance issues
in
Android Processing
•
8 months ago
Hi all !
I'm trying to port some oldschool demo effect to processing/android.
With the same code in java mode I reach something like 240fps but on android only ~30.
It seems the bottleneck is the "pixel fill rate", my inner loop is something like this:
- buffer.beginDraw();
- buffer.loadPixels();
- for(x = 0; x < buffer.width ; x++)
- for(y = 0; y < buffer.height ; y++)
- {
- buffer.pixels[x+y*buffer.width] = somevalue;
- }
- buffer.updatePixels();
- buffer.endDraw();
- }
(and my actual buffer is a 320*240 image so not a big one)
Any idea to go faster ?
Cheers,
Olivier
1