电晕SDK的应用规模过大 [英] corona sdk application size is too big

查看:106
本文介绍了电晕SDK的应用规模过大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用anscamobile电晕SDK开发我的新的手机游戏。我用的是试用版,当我建立我的游戏试玩,我注意到,该应用程序的大小是太大了。 (约25 MB),但它只是含2首歌曲(4 MB)和一些非常小的PNG图像。你怎么去想这个尺寸问题的来源?

I'm using corona sdk of anscamobile for developing my new mobile game. I was using the trial edition and when I build my demo of game, I noticed that the app size is too big. (around 25 mb) but it was just containing 2 song (4 mb) and a few very small pngs. What do you think about the source of this size problem?

难道是通过编程逻辑,算法或别的什么引起的? 如循环永远的东西,或者使用大量的glpbal变量等..? 然后,如果你有一些意见,我该怎么克服?​​

Could it be caused by the programming logic, algorithm or something else? like looping something forever, or using lots of glpbal variables etc.. ? Then if you have some opinions, how can I overcome?

感谢。

推荐答案

变量和code占用几乎不占空间。它更可能是无论是图像和声音或者电晕自己的图书馆是相当大的。

Variables and code take up almost no space. It's more likely to be either images and sounds or maybe Corona's own libraries are quite big.

哪个平台是太大?如果是iOS的打造,那么你应该知道有实际上不是一个20MB的限制,这只是最大限度地下载了3G,而iOS应用程序其实是可以高达2GB,如果你下载的Wi-Fi。

Which platform is it too big for? If it's the iOS build then you should know there isn't actually a 20MB limit, that's just the maximum to download over 3G, and iOS apps can actually be up to 2GB if you're downloading on Wi-fi.

此外,它的COM pressed大小(的.ipa)而不是应用程序大小(的.app),该限制适用于,因此,如果您的.ipa正在20MB那么它的罚款。如果你只拥有。应用程序而你不知道如何做的.ipa,尝试荏苒。应用程序,看看它有多大。如果压缩的大小是20MB下那么这将是下20MB的应用程序商店。

Also, it's the compressed size (the .ipa) not the application size (the .app) that the limit applies to, so if your .ipa is under 20MB then it's fine. If you only have the .app and you're not sure how to make a .ipa, try zipping the .app and see how big it is. If the zipped size is under 20MB then it will be under 20MB on the app store.

但要制定出的为什么的它是如此之大,这里是做什么:

But to work out why it's so big, here's what to do:

  1. 如果你从开始的.ipa,将其重命名为.zip,然后解压缩。里面是一个叫做包含的.app有效载荷文件夹。

  1. if you're starting from the .ipa, rename it to .zip and then unzip it. Inside is a folder called Payload containing the .app.

上的.app右键单击,并说显示包内容。这将显示所有的内部文件。

right-click on the .app and say "show package contents". That will show you all the files inside.

排序这些文件按大小,并尝试找出最大的是什么。如果他们是图形或声音文件,那么你可以尝试使用替代的PNG JPEG文件,或者使用更小的声音格式削减下来。如果他们是code语言库文件(这些往往没有扩展名,并有一个黑色的终端图标),那么有可能是你可以做的,因为它是最有可能的是使你的应用程序大核心电晕库文件罢了。

Sort those files by size and try to work out what the biggest ones are. If they are graphics or sound file then you can try to cut them down by using JPEGs instead of PNGs, or using smaller sound formats. If they are code library files (these tend to not have an extension and have a black terminal icon) then there's probably nothing you can do because it is most likely the core Corona library files that are making your app big.

这篇关于电晕SDK的应用规模过大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆