Different apk size in 4.3 and 4.2?

Hello!
Why are games packaged in UE4.3 larger than if it did in UE4.2 on 15mb?
And if we compare the logs in 4.3 adds a lot of pngs and fonts from

Engine/Content/Slate/…

Can it be a reason of bigger size and how can I get rid of it?

Try packaging your build in Shipping mode (both cooking and building) using the UnrealFrontend. This usually strips a lot of unnecessary content out.

Thank you for quick answer. I dont know how use the UnrealFrontend, but I will try:)

I tried use UnrealFrontend, but it didn’t help me.

What is the exact size difference?

For example, when I build ETC1 TappyChicken in 4.2 its size 28mb, but in 4.3 its size 48mb.

In Shipping mode? Could you check the texture size in px within ‘DefaultEngine.ini’ and the game version of that ini (if it exists) and check the size of the texture groups?

Yeah in Shipping. Which textures? In game version of DefaultEngine.ini I dont see any information about textures. And where locate DefaultEngine.ini in engine?

So then you are using the base settings which will result in quite large sizes. Add the following to your DefaultEngine.ini and change the MaxLod size to 512 for example:

[SystemSettings]
TEXTUREGROUP_World=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
TEXTUREGROUP_WorldNormalMap=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
TEXTUREGROUP_WorldSpecular=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
...

Copy all from BaseEngine.ini regarding the texture groups from the engine config folder.

Thanks for help! But after changing it my file has the same size:)
Actually some ugly method helps me reduce size of my build on almost 20mb. I just remove some files from engine before building and my game works fine:)))))
Does anybody know where and what Do i have to write in ini files for excluding folders from build?

Could you post which files did you got rid of? Also you should try reducing the size of all texture groups (or you already did :D).

Engine\Content\Slate\Fonts

Engine\Content\Slate\Common

and delete
+ContentDirectories=/Engine/MobileResources
from BaseEditor in Engine\Config

Don’t forget save before remove, ue4 does not run without it:)))

It’s really bad method and it would be nice to realise how to do this in ini files in project.

@Accumu1ator thanks for sharing this info,helped me a lot. My project OBB size is reduced by 15mb.

Can someone from staff guide more on this. What else can we remove from engine while packaging game, to get final package in minimum size :slight_smile:

It might be possible to adjust some in the platform specific ini file.
Instead of deleting the statement from the Base one add it to yours but with a minus character (-ContentDirectories=/Engine…).

Getting rid of slate stuff will also get rid of the ability to use slate in your build.

where exactly do i need to add -ContentDirectories command. I tried adding this to my project’s DefaultEngine.ini under [SystemSettings] but didn’t helped me.

It should go into ‘DefaultEditor.ini’ under the [UI] group. Always check the base engine config files to assure you make the proper changes.

Do you still need assistance on the issue?

Hello. I tried different ways but couldn’t do it right way. I don’t work on the project now. And honestly I don’t know if there is the problem still in UE4.7. But anyway thank you!

I’ll resolve the issue. If you have any updates please let me know ^^

will getting rid of the slate stuff mess with my UI? isn’t UMG built on slate?