Do you optimize your assets?

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Message
Author
User avatar
clua
Miko-Class Veteran
Posts: 537
Joined: Sat Dec 12, 2009 1:38 pm
Completed: Stormy Night /The Knife of the Traitor/Charlatans
Projects: The Hurtful Wall /_Salomon/Infurubia
Tumblr: notttt-che
itch: chegovia
Location: In a jar with pirañas
Contact:

Do you optimize your assets?

#1 Post by clua » Sat Mar 17, 2012 2:29 pm

Hey guys Im so sorry if there s a thread like this D:

I been wondering, Do you worry about the game weight?

Where I used to work, All the art we used to make, had to be optimized because It was for web purpose. But in the case of VN
Can It be done?(I mean the main atractive of a VN is the quality of pictures)

When it comes between png or jpg..I usually choose png, I did a little test a while ago(Im really not sure about it) But It seems that solid color drawings weight less on png than jpg
...Also about music...I manipulate the quality of my tracks with foobar, so they can weight like 1MB or less(Most of times is not really noticible)

I really dont know, I like to keep things not so heavy but do you mind?
If you do, what methods do you use to optimize things?
♦WIP♦
Infurubia
The hurtful wall
_Salomon

♦COMPLETE♦
+The Knife of the Traitor(Nanoreno 2012)
+Charlatans(Nanoreno 2015)

Dev tumblr
EVN Store

User avatar
Camille
Eileen-Class Veteran
Posts: 1227
Joined: Sat Apr 23, 2011 2:43 pm
Completed: Please see http://trash.moe
Projects: the head well lost
Organization: L3
Tumblr: narihira
Deviantart: crownwaltz
itch: lore
Contact:

Re: Do you optimize your assets?

#2 Post by Camille » Sat Mar 17, 2012 2:38 pm

I use PNGs for everything so that the quality is higher, plus I have a lot of things that are transparent. For the music, I convert all of them to OGGs, but keep them at fairly high quality, as well. However, because of the way I code our sprites, the sprites only take up like 1-2MB each. So usually it's music that makes up the largest "weight" in our projects.

In the end, I think people would rather have the file be a bit bigger rather than stare at pixelated graphics and whatnot. D: Or at least I would. ^^;;;

User avatar
Gambit74
Regular
Posts: 172
Joined: Sun Oct 23, 2011 3:09 am
Location: USA
Contact:

Re: Do you optimize your assets?

#3 Post by Gambit74 » Sat Mar 17, 2012 3:03 pm

I pretty much use only PNGs in my project, if only because most contains transparency while others are for image quality purposes. As for music files, I am currently using Ogg, but I find that converting them to MP3 gives them a louder reverb effect as well as taking up less space for some reason (I use Audacity for this, if it matters).
Nothing to see here, folks. For now, anyway...

User avatar
LateWhiteRabbit
Eileen-Class Veteran
Posts: 1866
Joined: Sat Jan 19, 2008 2:47 pm
Projects: The Space Between
Contact:

Re: Do you optimize your assets?

#4 Post by LateWhiteRabbit » Sat Mar 17, 2012 3:05 pm

Optimization of assets is important in ANY project. You need to balance quality and bloat. I don't care what size a final game ends up being, but I DO care about the size of each asset. If a game has 2000 1MB game sprites, I don't care. If a game has 200 10MB sprites, that's a problem.

User avatar
AxemRed
Veteran
Posts: 482
Joined: Sun Jan 09, 2011 7:10 am
Contact:

Re: Do you optimize your assets?

#5 Post by AxemRed » Sat Mar 17, 2012 4:01 pm

Gambit74 wrote:As for music files, I am currently using Ogg, but I find that converting them to MP3 gives them a louder reverb effect as well as taking up less space for some reason (I use Audacity for this, if it matters).
If you want your Ogg files smaller, just lower the quality setting before exporting. Vorbis is a better codec, so you'll end up with either smaller files or better audio quality compared to MP3.



Some stuff you can do with images:
- Use pngcrush/save-for-web to reduce the size of PNG files.
- JCC supports alpha and results in a 40-50% smaller size than PNG at acceptable quality.

I also recommend using windirstat to see what files take up the most space.

User avatar
Greeny
Miko-Class Veteran
Posts: 921
Joined: Sun Dec 20, 2009 10:15 am
Completed: The Loop, The Madness
Projects: In Orbit, TBA
Organization: Gliese Productions
Location: Cantankerous Castle
Contact:

Re: Do you optimize your assets?

#6 Post by Greeny » Sat Mar 17, 2012 4:49 pm

Aren't jpegs like, outlawed or something? They should be.
In Orbit [WIP] | Gliese is now doing weekly erratic VN reviews! The latest: Halloween Otome!
Gliese Productions | Facebook | Twitter
Image

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Do you optimize your assets?

#7 Post by nyaatrap » Sat Mar 17, 2012 6:08 pm

There is no choice other than png in the game's art, especially in the anime style. Converting them into the highest quality of jpeg just make them ugly but get more data size.

Code: Select all

If you do, what methods do you use to optimize things?
In image files, set compression level at 7~9 with all filters enabled, and delete all meta data. I'm also using "im.Composite" to make sprites with different costumes.

User avatar
Gambit74
Regular
Posts: 172
Joined: Sun Oct 23, 2011 3:09 am
Location: USA
Contact:

Re: Do you optimize your assets?

#8 Post by Gambit74 » Sat Mar 17, 2012 11:21 pm

Thanks AxemRed, I'll keep that info in mind :) .
Nothing to see here, folks. For now, anyway...

User avatar
DaFool
Lemma-Class Veteran
Posts: 4171
Joined: Tue Aug 01, 2006 12:39 pm
Contact:

Re: Do you optimize your assets?

#9 Post by DaFool » Sun Mar 18, 2012 12:25 pm

I have no choice but to use JCC and jpegs at 72dpi, the threshold of my quality tolerance. The delay in over-1mb pngs with built-in Intel videocard is noticeable.

User avatar
AxemRed
Veteran
Posts: 482
Joined: Sun Jan 09, 2011 7:10 am
Contact:

Re: Do you optimize your assets?

#10 Post by AxemRed » Sun Mar 18, 2012 4:38 pm

Greeny wrote:Aren't jpegs like, outlawed or something? They should be.
What's wrong with JPEG?
DaFool wrote:I have no choice but to use JCC and jpegs at 72dpi, the threshold of my quality tolerance. The delay in over-1mb pngs with built-in Intel videocard is noticeable.
DPI information is ignored and PNGs are decoded long before they reach the graphics card.

User avatar
clua
Miko-Class Veteran
Posts: 537
Joined: Sat Dec 12, 2009 1:38 pm
Completed: Stormy Night /The Knife of the Traitor/Charlatans
Projects: The Hurtful Wall /_Salomon/Infurubia
Tumblr: notttt-che
itch: chegovia
Location: In a jar with pirañas
Contact:

Re: Do you optimize your assets?

#11 Post by clua » Sun Mar 18, 2012 6:30 pm

I see most of you use png...I had an internal battle when I used to save my files back then, because when we needed to optimize things, we used jpgs which were placed on the fla files of the game(We used flash) but then the prog fellows said they got a code or something that lower the png files size..or sort

I find what Nyaatrap say interesting I think Im going to investigate about it(I mean the im.Composite part!)

Also I wonder
Aren't jpegs like, outlawed or something? They should be.
this too haha
♦WIP♦
Infurubia
The hurtful wall
_Salomon

♦COMPLETE♦
+The Knife of the Traitor(Nanoreno 2012)
+Charlatans(Nanoreno 2015)

Dev tumblr
EVN Store

User avatar
KomiTsuku
Eileen-Class Veteran
Posts: 1023
Joined: Mon Sep 22, 2008 11:32 pm
Completed: Dreams of the Skies, Anton's Vacation, Luka, The Halberd and The Tiger, Rising Angels, Pyrite Heart, Rising Angels: Reborn, The Halberd and The Fox, VN Tycoon, RA: Hope
Projects: Rising Angels
Organization: IDHAS Studios
IRC Nick: Komi
itch: idhas
Location: Somewhere
Contact:

Re: Do you optimize your assets?

#12 Post by KomiTsuku » Sun Mar 18, 2012 8:09 pm

I do a fair amount of it because it starts to get nasty after a while. For projects like Anima that are massive and high resolution (28 characters, 10 emotions each, a dozen+ with 4-5 outfits; 1280x960 res), using PNGs cause the overall size to be massive (add in side-by images and you are in the 200MB range from sprites alone). I have to use PNG due to transparency issues, but I use JPG for the backgrounds and CGs. For the music, I use OGG as WAV has a gargantuan size and MP3s have that whole rights thing.

In short: It really isn't a big deal for smaller games, but you need to concern yourself with file types for the bigger ones.

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Do you optimize your assets?

#13 Post by nyaatrap » Sun Mar 18, 2012 9:54 pm

You can let ren'py to make composite sprites with different expressions, costumes, e.t.c. It'll reduce the file size significantly. For example:

Code: Select all

    expressions = [angry, blush, cry, .....]
    for i in expressions:
        renpy.image(("akari", "%s"%i), im.Composite((791,1280), (0,0), "akari.png", (0,0), "akari_%s.png"%i))
In this example, akari.png is a base layer, and akari_angry.png e.t.c. are facial layers.
Last edited by nyaatrap on Sun Mar 18, 2012 9:59 pm, edited 1 time in total.

User avatar
fleet
Eileen-Class Veteran
Posts: 1554
Joined: Fri Jan 28, 2011 2:25 pm
Deviantart: fleetp
Contact:

Re: Do you optimize your assets?

#14 Post by fleet » Sun Mar 18, 2012 9:57 pm

I have a slow internet connection, so I hope others optimize. I've started doing it for stuff I upload.
All of my VNs are at http://wolflore.net NOTE: Downloads are now working.
Some are at http://www.the-new-lagoon.com. NSFW
Poorly done hand-drawn art is still poorly done art. Be a Poser (or better yet, use DAZ Studio 3D) - dare to be different.

User avatar
papillon
Arbiter of the Internets
Posts: 4104
Joined: Tue Aug 26, 2003 4:37 am
Completed: lots; see website!
Projects: something mysterious involving yuri, usually
Organization: Hanako Games
Tumblr: hanakogames
Contact:

Re: Do you optimize your assets?

#15 Post by papillon » Sun Mar 18, 2012 10:34 pm

On the other hand, if you push TOO much composite work onto RenPy, you'll get game slowdown.

Post Reply

Who is online

Users browsing this forum: No registered users