0 votes

I'm currently trying do decrease size of my apk file. And I'm trying to use scaling instead of making big textures. However, when I head big textures size of apk was - 42.2 Mb, and after I made smaller texture and just scaled them - it is 46.6 Mb. It looks really strange. So I wanted to ask how scaling works with memory.

Godot version 3.2.3 Stable
in Engine by (14 points)

Are you measuring the memory consumption or the apk size?

Apk size, but memory consumption also will be useful. Because I don`t know how it works.

When Godot saves scenes, it saves parameters that were changed. For example, if you have a Sprite with a scale of 1, the scale will not be recorded as it is the default value. However, if it has a scale of 2, then the scene will be saved with the scale because it's not the default value.

This size increase is insignificant and shouldn't make any difference in file size.

I strongly recommended that you make a copy, put back the old textures and return the scale then exporting again. You may have changed something in your project so check again.

Okay, thanks a lot :)

1 Answer

0 votes

The file size really shouldn't change if the only thing you did was increase the scale property of a Sprite or TextureRect node. Are you sure you didn't change anything else? And how large are the images files?

by (40 points)

I'm sure that i changed only textures. So, for example - I have 2D pixel texture, and i used to import it already scaled - so I had drawn 64x64 texture, but I increased it in my texture-editor to 196x196. Size of 196x196 texture was - 3.4 KB, and 64x64 - 1.12 KB. So now I imported 64x64 image, scaled it inside Sprite properties, and apk file strangely increased. I didn't find the solution yet, but I'll be checking through my project.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.