Optimized .png

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
Marqee
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Sun Feb 16, 2014 4:52 am
Contact:

Optimized .png

Post by Marqee »

With the introduction of large quantity of trees i got the game freezing for 1-2 sec every 1-2 minutes of play ( i put autosave to 30 mins so is not the problem )
Maybe i found a solution to that optimizing all the .png in the graphics folder.
the size is now 1/3 of original with no visual quality loss
game load faster , and is not freezing anymore.

here is the compressed images:

https://dl.dropboxusercontent.com/u/557 ... aphics.rar

User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: Optimized .png

Post by cube »

Hi, thanks for pointing this out! I have a question, though. Your optimized files and they seem to have alpha channel removed. That is intentional? Because that it breaks shadows. The removed alpha channel might be a reason why the game is faster (for me it was a little slower, but it might be a measurement error). Otherwise the images are stored in memory unpacked, so there shouldn't be any difference between optimized and unoptimized png :) For distribution, however the optimized ones are much better (obviously), so it's really great you brought this up.
I have no idea what I'm talking about.

Marqee
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Sun Feb 16, 2014 4:52 am
Contact:

Re: Optimized .png

Post by Marqee »

Thnk the software used to optimize the .png has removed the alpha channel.....
I didn' realized it until now
i'm checking as soon as i can to see if they can be optimized without losing it.

User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: Optimized .png

Post by cube »

Marqee wrote:i'm checking as soon as i can to see if they can be optimized without losing it.
Yes they can, on linux I used

Code: Select all

pngfix --strip all --optimize
and the sizes were very simillar to the ones you made.
I have no idea what I'm talking about.

User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: Optimized .png

Post by cube »

I have no idea what I'm talking about.

User avatar
Narnach
Inserter
Inserter
Posts: 32
Joined: Sun Mar 10, 2013 4:45 pm
Contact:

Re: Optimized .png

Post by Narnach »

You may want to look at http://imageoptim.com als well, since it incorporates a number of tools into one tool chain. For web development I use it a lot to get png and jpg images down to smaller sizes. Sometimes even 20% of the original without noticeable quality loss.
Identity is cheap, reputation is priceless.

Let's Player over at https://youtube.com/narnach

Marqee
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Sun Feb 16, 2014 4:52 am
Contact:

Re: Optimized .png

Post by Marqee »

i used those two :

http://luci.criosweb.ro/riot/

https://tinypng.com/

think both remove the alpha channel , keeping transparency.

Post Reply

Return to “Ideas and Suggestions”