Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Reduce the size of the game

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 22nd Jun 2014 16:16
Hi

Do you know some technics to decrease the size of our games.

My next AppGameKit game is a 2D RPG, and I have a lot of images.
So the limits of GooglePlay (50Mo) are are limited.

In jpg, we can use the compression, but it's not the same in png, it's difficult to reduce the size of a PNG image.
So, I have created a little tool (in pb), to reduce the numbers of colors (and color alpha) of an image.

The result : in general, this tool can reduce by 50% the size of an image and more. It depend of the number of colors that you keep (it's like indexed colors).

A screenshot :


If you are interested by this tool, you can download it here :
http://www.dracaena-studio.com/tools/ImageReductor/ImageReductor.zip


Do you have another technics to reduce the size of the game ?
Zip some contents for example ?

Thank you for your answers.

http://www.dracaena-studio.com
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 22nd Jun 2014 17:18
i believe above 50mb its called app extensions (1x 2 GB), means extra apk.

Using APK expansion files:
https://support.google.com/googleplay/android-developer/answer/2481797?hl=en

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 22nd Jun 2014 21:15 Edited at: 22nd Jun 2014 21:27
Image packing and audio formats are the best you can do. AppGameKit Tier 1 in v2 will have a much smaller bytecode file, but I'm not sure that matters since the APK file is actually a compressed PKZip file and the bytecode can be compressed heavily.
Most image formats won't be compressed in the APK.
This article might help you:
http://developer.sonymobile.com/2012/01/31/tips-for-reducing-apk-file-size/

That tool you're using is probably just assigning a color profile to the PNG image which only makes the PNG a little smaller in my experience. AAC (M4A) audio format is a nice reduction.

Other than that you need to use the APK expansions. I've no idea how to use them with AGK...


@Blendman - just a minor spelling thing. You keep saying technics when you mean to say techniques. This is confusing us native english speakers

Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 22nd Jun 2014 21:55 Edited at: 22nd Jun 2014 21:56
Thanks for your information about APK expansion


Quote: "AAC (M4A) audio format is a nice reduction. "

I will tried this format for my sounds.

Quote: "That tool you're using is probably just assigning a color profile to the PNG image which only makes the PNG a little smaller in my experience. "
No, the Tool (I have developped) reduce a lot the size of my png.
Before, my project size was 12Mo and after I have developped and used this tool on all my png, the size is 6 mo . It's not a llittle smaller.
You can test it if you want to see the interest.

I have tried PNG Crush and OptiPNG, but noone do the job like My tool ^^. I don't know why but I think I have created a great tool .

http://www.dracaena-studio.com
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 22nd Jun 2014 22:47 Edited at: 22nd Jun 2014 23:00
That's a nice reduction!
I'll try it out.
If this is viable you should market it. A lot of devs need a tool like this, as you know PNG Crush and OptiPNG don't do much to help.


Tried it out... used 32 colors on my images and they seem alright. I haven't tested extensively. 16 colors was too little and caused artifacts. The file was reduced about 50%. Nice work!

IronGiant
AGK Bronze Backer
12
Years of Service
User Offline
Joined: 27th Feb 2012
Location: the great state of madness
Posted: 23rd Jun 2014 15:46 Edited at: 23rd Jun 2014 17:52
Your link does not work for me Blender but I'll check it out later.
Sounds pretty useful.

And No Offense or Disrespect meant to TGC's (both DarkBasic Pro and AppGameKit are great), but I always said PureBasic is one of the best languages for the PC , Mac and Linux.

Powerful, does 2D and 3D, Windowed , Full screened , Business , Games, and well , any kind of program you can come up with in your demented little heads, least my demented little head...

But you have to buy PureBasic to realize its full potential. I did.

And it has one of the best IDE's I have ever used.

Sure the IDE TGC has planned for AppGameKit will be just as cool, hint hint.. wink wink..

And yes I love AppGameKit too, or I wouldn't be here!

It's Bird! , It's Plane!, No its a rocket powered Squirrel holding some acorns and a smile!
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 23rd Jun 2014 16:02 Edited at: 23rd Jun 2014 16:14
The link seems to be broken?

EDIT: I get similar results from my image optimisation in GIMP. If you use the "Posterise" tool under "Color" I find setting the number of colours as low as 20 to be acceptable under most circumstances and yields around 50% of the file size.
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 23rd Jun 2014 17:16
Png uses lzw compression. This means that horizontal lines take less space than vertical lines. If that's of any use.

Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 23rd Jun 2014 18:53 Edited at: 23rd Jun 2014 19:13
Your application crashes if you manually delete the numbers in the first box.

EDIT:
Actually for some reason it is crashing now any time I try to change the number in the first box with the up/down arrows even. Could be something on my end. Not sure what though...

EDIT2:
It's because I didn't have a file loaded. Might want to disable the ability to change that until a file is loaded so ID 10Ts like me can't break it...

Login to post a reply

Server time is: 2024-11-25 06:50:45
Your offset time is: 2024-11-25 06:50:45