Do you optimize your assets?
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
- 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?
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?
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♦
Infurubia
The hurtful wall
_Salomon
♦COMPLETE♦
+The Knife of the Traitor(Nanoreno 2012)
+Charlatans(Nanoreno 2015)
♦Dev tumblr♦
♦EVN Store♦
- 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?
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. ^^;;;
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. ^^;;;
Re: Do you optimize your assets?
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...
- 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?
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.
Re: Do you optimize your assets?
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.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).
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.
- 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?
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

Gliese Productions | Facebook | Twitter

- nyaatrap
- Crawling Chaos
- Posts: 1824
- Joined: Mon Feb 13, 2012 5:37 am
- Location: Kimashi Tower, Japan
- Contact:
Re: Do you optimize your assets?
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.
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.
Code: Select all
If you do, what methods do you use to optimize things?Re: Do you optimize your assets?
Thanks AxemRed, I'll keep that info in mind
.
Nothing to see here, folks. For now, anyway...
Re: Do you optimize your assets?
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.
Re: Do you optimize your assets?
What's wrong with JPEG?Greeny wrote:Aren't jpegs like, outlawed or something? They should be.
DPI information is ignored and PNGs are decoded long before they reach the graphics card.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.
- 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?
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
I find what Nyaatrap say interesting I think Im going to investigate about it(I mean the im.Composite part!)
Also I wonder
this too hahaAren't jpegs like, outlawed or something? They should be.
♦WIP♦
Infurubia
The hurtful wall
_Salomon
♦COMPLETE♦
+The Knife of the Traitor(Nanoreno 2012)
+Charlatans(Nanoreno 2015)
♦Dev tumblr♦
♦EVN Store♦
Infurubia
The hurtful wall
_Salomon
♦COMPLETE♦
+The Knife of the Traitor(Nanoreno 2012)
+Charlatans(Nanoreno 2015)
♦Dev tumblr♦
♦EVN Store♦
- 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?
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.
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.
My common sense is tingling!
Woah! I actually have a website now. It never updates!
Woah! I actually have a website now. It never updates!
- nyaatrap
- Crawling Chaos
- Posts: 1824
- Joined: Mon Feb 13, 2012 5:37 am
- Location: Kimashi Tower, Japan
- Contact:
Re: Do you optimize your assets?
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:
In this example, akari.png is a base layer, and akari_angry.png e.t.c. are facial layers.
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))
Last edited by nyaatrap on Sun Mar 18, 2012 9:59 pm, edited 1 time in total.
Re: Do you optimize your assets?
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.
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.
- 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?
On the other hand, if you push TOO much composite work onto RenPy, you'll get game slowdown.
Who is online
Users browsing this forum: No registered users
