Currently Online

Latest Posts

Topic: Asset size

stonerl
Avatar
Joined: 2018-07-30, 00:03
Posts: 94
Ranking
Likes to be here
Location: Earth
Posted at: 2018-07-31, 03:47

I'm not sure whether this is the correct spot to discuss this. Just out of curiosity used optipng on all the png-assets in the data folder from the latest trunk.

find . -iname "*.png" -exec optipng -nc -nb -o7 {} \;

First the size of the data folder was 395M. After optimizing the filesize it was "only" 387M. In total 36174 files got changed.

Did you consider this to decrease the size of the installer and the game itself? I know that in total it is only a reduction of about 2-3%, but maybe worthwhile..

Best stonerl

Edited: 2018-07-31, 03:48
Top Quote
teppo
Joined: 2012-01-30, 09:42
Posts: 298
Ranking
Tribe Member
Posted at: 2018-07-31, 06:13

stonerl wrote:

Did you consider this to decrease the size of the installer and the game itself? I know that in total it is only a reduction of about 2-3%, but maybe worthwhile..

I always thought that we're already doing that.. Nice discovery.


Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 1523
Ranking
One Elder of Players
Location: Germany
Posted at: 2018-07-31, 08:58

There is a python script which does png optimization automatically. It uses also optipng. Don't know when it was last run though...

Maybe we should add using the script in the release plan?


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 2623
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2018-07-31, 19:14

kaputtnik wrote:

Maybe we should add using the script in the release plan?

Done. Thanks for the hint! face-smile.png


Busy indexing nil values

Top Quote