Page 1 of 1
Optimized .png
Posted: Fri Feb 21, 2014 8:51 pm
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
Re: Optimized .png
Posted: Sat Feb 22, 2014 10:45 pm
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.
Re: Optimized .png
Posted: Sun Feb 23, 2014 12:50 am
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.
Re: Optimized .png
Posted: Sun Feb 23, 2014 11:20 am
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
and the sizes were very simillar to the ones you made.
Re: Optimized .png
Posted: Sun Feb 23, 2014 12:25 pm
by cube
Re: Optimized .png
Posted: Sun Feb 23, 2014 1:44 pm
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.
Re: Optimized .png
Posted: Sun Feb 23, 2014 1:45 pm
by Marqee
i used those two :
http://luci.criosweb.ro/riot/
https://tinypng.com/
think both remove the alpha channel , keeping transparency.