Preloading from ZIP?

Discussion and feedback on Construct 2

Post » Wed Nov 30, 2011 10:37 am

I believe that it would be worthwhile for Construct 2 exported projects to be zipped; the preloader would load files from inside the zip file.

This would significantly reduce the total project size as well as preloading time (as downloading the one zip is much faster than multiple files). Here is an example implementation.

What say you?
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Wed Nov 30, 2011 11:13 am

Nice idea, but the majority of the filesize of exported apps are PNGs (which are already run through PNGCrush to squeeze them even smaller) and Ogg Vorbis or MP4 AAC audio. Already-compressed data doesn't usually gain anything significant by being zipped.

The scripts could be zipped... but if your server supports deflate, it sends them to the browser compressed anyway!
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Wed Nov 30, 2011 11:21 am

It could also reduce the number of requests to 1, compared to dozens or even hundreds depending on scope of the project.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155


Return to Construct 2 General

Who is online

Users browsing this forum: 99Instances2Go, BackendFreak, Google [Bot], TGeorgeMihai, TheRealDannyyy and 7 guests