Is display.newImageRect very slow on Android devices? Our game runs fine and switches scenes smoothly on iOS devices. The only thing I can think of that is slowing the game down is loading images via display.newImageRect(). For example, going to the Credits scene, only two images are loaded: a background image of 480x360 (800x600 actual size, using 1.5x image suffix), and a much smaller back button image. This takes more than 3 seconds to load, but loads instantly on iOS devices. I'm testing on an HTC Evo 4G running Android 2.2 and the .apk was built for Android 2.2 as well. Another place where the game lags (freezes for about 1 second) is when a button is clicked and its image is replaced by another one. In other words, the game detects touch up event inside the button, deletes the display object for it, and replaces it with a new one via display.newImageRect. The button is small, not more than 100 points wide, and yet it takes ~ 1 second to load its image and the whole game freezes? Again, its instantaneous on iOS devices.
Also, this performance is after I have disabled animated transitions in the director library. All of this works smoothly including the transition animations via director.lua on iOS devices.
Answers from Ansca would be greatly appreciated.