x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to reduce packaged game size

Hey everyone,

I've just released an Android game, but I've been getting some complaints about file size. Normally I just ignored engine content and tried to reduce as much as possible with my game textures, but it always has horrible results.

As much as I love UE4, the file size issue is significantly impacting my games potential and I'm assuming there's a better way to go about it instead of reducing 4k textures to 128x128 textures.

I've already performed all of the steps mentioned in the docs, went through all of the engine's rendering settings, and I have a PAKBlacklist (which seems to do nothing), but there is still around 30mb of engine content I'm trying to clean out.

The biggest culprit is DefaultBloomKernel.uexp so I added it to the PAKBlacklist, but it kept packaging. Finally, after some serious digging I managed to remove it by adding this to my DefaultAndroid.ini:

 [/Script/Engine.Engine]
 DefaultBloomKernelTextureName=/Engine/EngineResources/DefaultTexture.DefaultTexture

I prefer this method (which should definitely be documented somewhere instead of buried in the forums) because it just changes the texture instead of completely preventing it from being packaged. I was wondering if I could replicate the same steps to remove some of the other engine materials/textures that are being pulled in.

I'm currently trying to remove:

  • BaseFlattenMaterial

  • DefaultDeferredDecalMaterial

  • DefaultDiffuse

  • DefaultMaterial

  • InvalidLightmapSettings

  • T_Default_Material_Grid_M

  • T_Default_Material_Grid_N

  • WorldGridMaterial

If not, I was wondering what other settings I could change to make sure this stuff isn't getting pulled in.

I also wanted to see if anyone had any tips on how to remove

  • T_MobileControls_textue

  • T_MobileMenu2

I tried checking them out in the reference viewer, but it either the Engine isn't showing me what's referencing these items or they aren't being referenced at all and shouldn't be packaged in the first place.

Thank you all for your help!

Product Version: UE 4.21
Tags:
more ▼

asked May 10 '19 at 08:56 AM in Packaging & Deployment

avatar image

F_Innovations
59 3 3 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question