I'm building an app and running the .apk on two different Android devices. The time between gideros splash and my app's main screen is LESS on my old OG Droid than it is on the Samsung Galaxy Nexus. 7 seconds faster.
Specifically, in a side by side test, it takes about 9 seconds from Gideros splash to the app's main screen on Droid and 7 more seconds until the app's main screen appears on the Galaxy Nexus.
Any ideas?
Comments
https://sites.google.com/site/xraystudiogame
Here's where the difference is
On Galaxy Nexus
Getting closer ...
It did highlight that there must be some difference in the way my two phones handle loading fonts. I would have thought that ICS would be better than FROYO, but there are so many other variables that I can't make appropriate conclusions.
Cheers!
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
Long story: I have a poorly implemented keypad for testing on PC Player and Android (until a keypad becomes available within Gideros for the player, and until I figure out how to hook into the native Android UI keyboard).
The home-grown keypad was calling TTFont.new() for every key during initialization.
That's every alphanumeric and symbol! Unlike Texture.new(), I don't think TTFont.new() realizes when it loads the same font and size multiple times to increment a reference count. It looks like it loads multiple resources every time. Not sure.
So, I changed the keypad class to be passed a pre-constructed font in its .init() instead of the font name, and use the font in all the calls to TextField.new(font, textStr).
I lost a little customization for making some key letters smaller fonts than others, but this is only a temporary hack to allow keypad entry.
Hopefully this explains my mess and how I got out of it.
Likes: techdojo
Likes: chipster123
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill