How to Optimise your game files

Discussion in 'RPG Maker MV Tutorials' started by LvLUpDesign, Sep 25, 2018.

?

Was this helpful?

  1. Yes

    5 vote(s)
    62.5%
  2. No

    3 vote(s)
    37.5%
  1. LvLUpDesign

    LvLUpDesign Warper Member

    Messages:
    1
    Likes Received:
    2
    First Language:
    English
    Primarily Uses:
    RMMV
    Tutorial description: Hey guys, the following is copied over from my blog and it goes over lowering the overall size of your game files from image compression to getting rid of useless data in your files.

    Requirements: Obviously you'll need RPG maker. Photoshop isn't required but it does help and Audacity.

    RPG Maker Optimisation you should know about
    Hey guys, another week and another blog, this week I’ll be going over a few things you should know about optimising your RPG maker build. Information that is important but never really important enough for the YouTube tutorials. (On that note I might later on make a video about the contents of this blog)

    Lowering the size of your game file

    [​IMG]
    When you create a new project you’ll be greeted with this lovely window telling you all of the assets that are being imported into your project, if you’re like me then you will be using next to none of these assets in your final build. These assets add up to around a whopping 380MB. Start by deleting any assets from your game folder that you know you won’t be using. Any of the other assets should be renamed in order to represent that they are to be deleted later, “If you are using them for prototypes an what not.” e.g. (!prototypeActors1)

    Another thing you can do is look at your file extensions. For example if your audio tracks are in .mp3 consider converting them to .ogg for the smaller file size. as you can see in the image below, the size of the .mp3 is reduced a large amount after being converted to .ogg (which my computer wishes to label as a VCL media file as if that’s some sort of extension.)


    [​IMG]
    If you have 100 different audio files then that is 100MB that you have saved in space for the game file. If you have a retro game, then you could convert it all to MIDI for an audio aesthetic as well as a vastly reduced file size too.

    The same can also be said for image file size. The following image shows how I took the file size from 400Kbs down to 100Kbs.


    [​IMG]
    This is a software called TinyPNG and is free for up to 5MBS and they have a very cheap yearly subscription for images over that size as well as extension options. How it works is that it reduces the amount of colours being used in an image while still retaining any transparency it has and the detailed sacrificed is near on invisible, only noticeable if you were to go into the file and analyse the pixels. They have a Photoshop plugin that allows you to export your images directly as a reduced sized PNG instead of uploading them to the site every time. For example sake, lets say you have 1000 images in your game worth 400KBs. By using TinyPNG to reduce the size, you save roughly 300MBs of file size.
    You can try it out for free with this link.
    bit.ly/lvlupdesigntinypng

    Those are some of the ways that you can majorly reduce the file size in the final build of your game. Why do you want to reduce your file size? It can help with loading times and lag issues and download times. Overall having clean and small file sizes are what we should be aiming for as Indie devs.
     
    #1
    Karlski and MaGicBush like this.
  2. standardplayer

    standardplayer Keeper of Kitties Veteran

    Messages:
    415
    Likes Received:
    1,661
    First Language:
    English
    Primarily Uses:
    N/A
    Thanks for this, I use a ton of images in my projects and I never knew about TinyPNG. Good stuff
     
    #2
  3. gstv87

    gstv87 Veteran Veteran

    Messages:
    1,813
    Likes Received:
    849
    First Language:
    Spanish
    Primarily Uses:
    RMVXA
    doesn't need to be a retro game.
    modern MIDI systems can play back a good quality orchestra-like track with no problem.
    the difference being, with a wave file you get the same playback across the spectrum, and with a MIDI file you're tied to the capabilities of the target device, which may or may not be able to reproduce it, in various degrees.
    I remember the game Tzar (RTS game of the early 2000s) which had wave SFX and MIDI music.
    I had a crappy sound card which couldn't reproduce MIDI and everything sounded like a crappy synthesizer, while a friend had a much better card, and on his end the same game sounded like a symphony.

    I've been dealing with compression and optimization myself lately, and it's not only about the quality of individual assets, but about the engineering of the whole program itself.
    it helps a lot more to fit as much tiles as you can into ONE tileset, for ONE file, to use in several maps, than to compress several files of images as low as you can.
    when it comes to *optimization*, every bit you can shave off helps, especially if you engineer the file from the bit level alone (AKA, using a palette for images, or a compact instrument set, for music, or a low framerate for movies, etc)

    that, and, loading and unloading resources on demand, cleverly and optimally, also helps a lot.
     
    #3
  4. OnslaughtSupply

    OnslaughtSupply Ssshhh... Veteran

    Messages:
    731
    Likes Received:
    762
    Location:
    Texas
    First Language:
    English
    Primarily Uses:
    RMMV
    #4
  5. BattlebornProductions

    BattlebornProductions Villager Member

    Messages:
    9
    Likes Received:
    7
    First Language:
    English
    Primarily Uses:
    N/A
    Thanks for helping decide .mp3 vs .ogg (OGG obviously)
    Also, those who like Open Source (this is NOT my Project) but I use it for anything Image Compress.

    https://saerasoft.com/caesium/

    Use at your discretion.
     
    #5
  6. about7

    about7 Veteran Veteran

    Messages:
    31
    Likes Received:
    9
    First Language:
    English
    Primarily Uses:
    RMMV
    very useful for when my game gets too big. Thanks mate
     
    #6

Share This Page