Log in or register to post comments

Filesize Optimization for Unity QCAR?

December 12, 2010 - 8:52pm #1

Just curious, are there techniques for optimizing the filesize footprint for Unity QCAR...

Even the "Hello World" with just the chips image and a cube, compared to the native QCAR @ ~2MB, Unity QCAR runs at ~10MB - it's a hurdle that my unrooted Sprint Evo can't handle with its factory bloatware.

Re: Filesize Optimization for Unity QCAR?

December 22, 2010 - 2:36am #7

> There I added android:installLocation="preferExternal"
> immidiately after package="com.qualcomm.QCARUnityPlayer".

I think it does that for your already. You can verify that by building your project without that attribute and then go to YourProject/Temp/StagingArea/AndroidManifest.xml and see if that flag is there.

> I have not tried with the new install yet, but you worked
> on the core unity project itself right?

Yes, but I'm responsible for other parts (like 3d asset import / animations), so I'm not really an expert in Android/mobile part.

Re: Filesize Optimization for Unity QCAR?

December 21, 2010 - 5:58pm #6

Hi Paulius,
What I did to make it install in sd card in the previous version of the qcar unity plugin was -
after compiling the project once, i went to asset > plugin > android folder and opened AndroidManifest file.
There I added android:installLocation="preferExternal" immidiately after package="com.qualcomm.QCARUnityPlayer".

So after that when I compiled it from unity, it straight installed it in the sd card and just to be sure I went to application and found that from application management that it has the option saying move to phone.

I have not tried with the new install yet, but you worked on the core unity project itself right? Should not these things be too simple for you?

Regards
Avi

Re: Filesize Optimization for Unity QCAR?

December 21, 2010 - 9:09am #5

@cdtavijit : I'm not quite sure what you're asking/suggesting. The storage on SD card is a problem on Androids in general: you can store libs (i.e. .so files) on main memory only by default, so no settings in manifest can change that.

Re: Filesize Optimization for Unity QCAR?

December 19, 2010 - 10:40pm #4

@ Paulius : Could not you use the external location in the android manifest to ask it to install in SD card?

Re: Filesize Optimization for Unity QCAR?

December 18, 2010 - 10:45am #3

The problem is on in QCAR - the most of the size comes from UnityPlayer.so and the problem is that it is stored on main memory instead of SD card. As far as I know Unity 3.2 should address this issue...

Re: Filesize Optimization for Unity QCAR?

December 12, 2010 - 9:29pm #2

Unfortunately, Unity applications are going to be larger by default. I believe an empty Unity Android project is around 10 MB (installed to internal memory).

You can try adding the android:installLocation="preferExternal" to the Manifest file located in Assets/Plugins/Android. This will attempt to push the application to your device's storage card, rather than to internal memory.

- Kim

Log in or register to post comments