Hi
I have created a simple app (attached) to demonstrate something close to what I'm trying to do. Essentially, it could be anything to do with processing some / a lot / all the pixels in an image. Out of curiosity I thought I'd just time some basic loops which seem to run quite slowly even when not really doing any useful work.
The app attached does 4 things:
1) Time the jpeg library to load and return the pixels of a bitmap.
2) Time getting each pixel from a bitmap using Bitmap.GetPixel.
3) Time a simple loop with a nested For that doesn't do much.
4) Time a simple loop with the nested For removed.
The timings I get on an HTC Wildfire are:
1) 0.15 secs
2) 9.12 secs
3) 6.35 secs
4) 3.73 secs
It's a bit of a show stopper if it takes this long just to run a loop that doesn't do much. Any thoughts on any of this stuff would be welcomed. Btw, the resolution of the screen on my wildfire is 240x320.
I don't mean for this to be a critcism of b4a, I just trying to find out what I can and can't do on a mobile device (I've spent all my life programming PCs). B4a is awesome, using stuff like the e.g. PhoneOrientation events is just so easy! I've just always had a nerdy obsession with images & gfx etc and I think I've finally found a development language that I can use to set some of my past creations free
Thanks