PTCInc / vuforia-engine

Bug and feedback issue tracker for the Vuforia Engine SDK
https://developer.vuforia.com
20 stars 0 forks source link

Large textures in Resources increasing build sizes #118

Open ianclinkenbeard opened 7 months ago

ianclinkenbeard commented 7 months ago

Summarize your feature feedback Our team is attempting to reduce the overall size of our iOS and Android builds, and we noticed that three large textures in the Vuforia Resources folder are adding a total of 7 MB to the builds despite only being used inside the editor:

Each of these textures are 2048x2048 and when imported are each 2.4 MB.

Screenshot 2024-04-29 at 3 46 33 PM

Describe your feature Each of these textures are useless in actual builds as they are only used for editor gizmos, but are included in builds anyways. This seems to be a result of them being referenced by the BuiltInRuntimeResourcesRegister asset. We would like a way for these to be excluded from builds entirely.

Use-case description These textures do not need to be included in builds but there is seemingly no way to exclude them currently, resulting in around 7 MB of unnecessary bloat to the build sizes.

Business impact Minimizing the build size of our app would help address customer complaints of the app taking up too much space on their devices / taking too long to download, and also help us remain under the maximum build size the App Store will allow users to download the app without a wi-fi connection.

Workaround We're unable to exclude these textures from the build entirely, but if we use Vuforia as an external package so we can directly modify its file contents, we can reduce their sizes down to something extremely small (e.g. 16x16 pixels) and dramatically reduce the amount of space they take up in the build.

Additional context N/A

ptc-thesbyro commented 7 months ago

Hello and thank you for your feedback.

I have raised your request to our product management organization for consideration.

Kind Regards,