c2runtime.js increased size

0 favourites
  • 3 posts
From the Asset Store
220 Food Sprites in 16x16 pixel size. Perfect for items for a retro style game.
  • Steps to reproduce:

    1. minify script

    Observed result:


    Expected result:


    Operating system & service pack:

    win xp sp3

    Construct 2 version:


    Not really a bug, but I just upgraded to the last version, and I had to make changes to three projects, they all gained roughly 15% in file size

    I haven't worked in C2 for a while (nor have the time for further tests these days), so this may not have been introduced in the very last version...I noticed r123 had an updated Google Closure Compiler, which may be worse than the previous version?

  • Closing as not a bug, this is all the save/load machinery. I tried to design it so Closure Compiler would omit it if it wasn't used, but it proved rather difficult to do that. I don't think it's too important anyway, since most servers transmit HTML, JS and CSS in compressed format, so the actual transmitted size will be roughly equivalent to the size of zipping the file. An empty project exports to ~93kb minified, and compresses down to just 30kb, so I think in practice the runtime script will be about as big as one or two images from your project.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Okay, thanks for the details

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)