Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large textures in Resources increasing build sizes #118

Open
ianclinkenbeard opened this issue Apr 29, 2024 · 1 comment
Open

Large textures in Resources increasing build sizes #118

ianclinkenbeard opened this issue Apr 29, 2024 · 1 comment
Labels
feature-feedback Feature feedback

Comments

@ianclinkenbeard
Copy link

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:

  • GroundPlaneReference.png
  • MidAirReference.png
  • Reticle.png

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

@ianclinkenbeard ianclinkenbeard added the feature-feedback Feature feedback label Apr 29, 2024
@ptc-thesbyro
Copy link
Collaborator

Hello and thank you for your feedback.

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

Kind Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-feedback Feature feedback
Projects
None yet
Development

No branches or pull requests

2 participants