Yesterday, we decided to pull Open Feint support from our game. We’ve been struggling to keep ourselves under the magic 20MB limit, and our load times have become 10 seconds or longer on older devices (especially Android!)
We were looking for big solutions, and it turns out that, for us at least, disabling game network reduces our app size by 7MB, and cuts 7 seconds off our average load time.
(!)
Here are some numbers:
Total size of all textures used in our app: 9.3MB
Total size of all music / sound used in our app: 3.4MB
Total size of .lua files and data: 400k (Particle Candy is a huge chunk of this!)
Total: 13.1 MB
Actual size of our app when built through Corona: 25.4 MB
(!)
Now I realized that Corona needs some overhead - but that really seems like an excessive amount of overhead in a community which lives and dies by the 20MB limit. We’re seeing Corona add more than 12MB.
We’re using a few modules in our game : json, flurry analytics, particle candy, and game network (for Open Feint). We tried pulling these out one at a time. The first two had no visible impact on our bundled size or load times, but the last one cut our file size down to just over 18MB, and cut our load times by 7 seconds. (On Android, the decrease was even more dramatic.)
Is this in line with what other folks are seeing? I half-suspect that this issue became worse in the recent merge of OF support with the generalized game network calls…
[import]uid: 65996 topic_id: 20723 reply_id: 320723[/import]