Methods to minimize file size

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.
Post Reply
Message
Author
User avatar
akareed
Regular
Posts: 41
Joined: Tue Jun 30, 2015 7:20 am
Projects: Noted @ website
Location: Canada
Contact:

Methods to minimize file size

#1 Post by akareed » Sun Aug 21, 2016 11:07 am

I'm actually quite confused on where to put this, crossing fingers this would be the best section to post it under. :?

I do have some questions regarding your game's file size and such.
1. What are some methods you use to reduce the game's final size? (If you do any at all)
2. Do players care about this at all? Will they pass a game just because the file size is too big?

:?: Wow, I actually had more questions than I thought. What are you guys' opinions about these?

Right now I don't do anything but put all my images through a compressor app called ImageOptim.
As a player, I don't usually look at its size. :|
↓ check out gallery and projects I've worked on with fellow creators! ↓
Image
Need some graphics for your game?

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

Re: Methods to minimize file size

#2 Post by fleet » Sun Aug 21, 2016 12:50 pm

I avoid using bmp and png files where I can, and use jpg files instead.
On video files I use MP4. For sound I avoid wav files and use mp3.
Also on music tracks, instead of playing a 60 second piece of music, I'll try to find a 10 second piece and loop it.
All of my VNs are at http://wolflore.net
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
Katta
Veteran
Posts: 498
Joined: Sat May 04, 2013 11:18 am
Tumblr: gamesbykatta
Deviantart: katjama
Contact:

Re: Methods to minimize file size

#3 Post by Katta » Sun Aug 21, 2016 3:17 pm

I've seen a recommendation to use .ogg files instead of mp3 and they really are smaller. Personally I don't care much about the file size but people in some countries still do.

User avatar
Fuseblower
Regular
Posts: 142
Joined: Sat Jan 16, 2016 6:01 pm
Projects: Tenkeiteki Tokyo
Contact:

Re: Methods to minimize file size

#4 Post by Fuseblower » Sun Aug 21, 2016 5:32 pm

Well, one thing you could do is combine jpeg and png images. Jpeg typically gives better compression but it doesn't have an alpha mask. So, you could put the mask on its own in a png file and combine it with the jpeg that contains the colors. The mask will compress just fine in png format since it's mostly composed of 0's and 255's anyway. Of course, jpeg is a "lossy format" so the better compression comes at the cost of a bit of loss in the quality (normally hardly an issue).

A quick search in the renpy documentation showed the function "AlphaMask()" but I don't have any experience with it since I'm just starting out with renpy. I don't know whether there are any performance issues with it or not.

Players might not look to the file size but hosting sites might. Sites like "Kongregate", for example, have a 50MB limit (although Kongregate doesn't host renpy games as far as I know :)

User avatar
YonYonYon
Veteran
Posts: 371
Joined: Sun Jul 11, 2010 9:25 am
Projects: Nightflower(Frozen), Reach the Starlight(WIP)
Contact:

Re: Methods to minimize file size

#5 Post by YonYonYon » Wed Aug 24, 2016 7:05 am

You can try PNGGauntlet to compress your .png files https://pnggauntlet.com/
Works best with sprites than BGs and CGs, for these, it is better to use .jpg format
ImageImage

User avatar
MoonByte
Regular
Posts: 146
Joined: Thu Mar 24, 2016 9:18 pm
Completed: Shine (RPG Maker), Heroes (RPG Maker), Lantern Bearer (RPG Maker), Loop the Loop (Unity), Magic Potion (Unity), Other Stars (Unreal), Sky Eye (RPG Maker), WIN Delivery & Fateful (Ren'Py)
Projects: Weird Is Normal (Ren'Py), Gnowee (prob. Game Maker)
Tumblr: kaiopdebeeck
Location: Germany
Contact:

Re: Methods to minimize file size

#6 Post by MoonByte » Wed Aug 24, 2016 8:15 am

What usually is the big overkill are sound and music files.
Keep them small and in file types that don't just eat double as much as necessary. Most of the time, you will find that even all image folders combined (UI, sprites, backgrounds, CGs) are at most only a quarter of the game size with the rest being the music. If you want top quality images, then always first try and see if you really need a 3 minute song in .wav

User avatar
akareed
Regular
Posts: 41
Joined: Tue Jun 30, 2015 7:20 am
Projects: Noted @ website
Location: Canada
Contact:

Re: Methods to minimize file size

#7 Post by akareed » Thu Aug 25, 2016 2:19 am

Thank you for all the replies/suggestions so far! I'll still have to take some time to check and see what will work best for me but these are all helpful tips. :wink"
↓ check out gallery and projects I've worked on with fellow creators! ↓
Image
Need some graphics for your game?

User avatar
SundownKid
Lemma-Class Veteran
Posts: 2294
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Methods to minimize file size

#8 Post by SundownKid » Thu Aug 25, 2016 3:37 am

Use an online PNG compressor to reduce file size of images

Convert all music to .ogg (.mp3 would also be suitable, but it's a copyrighted file format and is illegal to sell games without paying a licensing fee)

Of course, players probably wont care THAT much, but it's helpful to your players who have slow internet.

Alte
The Great Organizer
Posts: 404
Joined: Fri Apr 18, 2014 5:26 pm
itch: alte
Contact:

Re: Methods to minimize file size

#9 Post by Alte » Sun Sep 25, 2016 11:03 pm

1. Alternate method for reducing image file size could be through WEBP format.
akareed wrote:2. Do players care about this at all? Will they pass a game just because the file size is too big?
I interpret the second question as: What does the players expect from a game with a large file size?

Post Reply

Who is online

Users browsing this forum: No registered users