PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Game storage footprints

What has been the experience of you guys that have released games with regard to how people feel about storage footprint? What do you see as the reasonable upper limit for most games?

I ask because the game I'm getting ready to release looks like it will come in around 5M when it's all done. This doesn't strike me as too much considering most people tend to have large memory cards, and add to that the fact that the game has a large number of cut scenes with voiceovers and such, so it's obviously going to be a bit larger than a simple game of Blackjack!

At present the load time on my E-125 is longer than I'd like (around 30 seconds I think, but I haven't even begun any optimizing yet), but that's also a function of all the multimedia components that have to be readied initially. This is relevant because in order to get the storage footprint down I'd have to use compression on much of the resources, but this will obviously only increase the load time.

It's a tough trade-off, so I wanted to see if anyone had any experience in terms of feedback from users to see what they generally think. Since your all users yourselves, your opinions are just as relevant naturally! :)
I have no problem with a large footprint on a storage card as long as you don't install too much "junk" on my PPC itself in the Windows directory. I have loaded games (ie, Ultima Underworld) that have taken as much as 16 MB after the complete install.

I am more annoyed at longer load times. Of course, the perfect balance between load times and storage size is ideal. Keep storage requirements between 5-8 MB and you shouldn't hear too many complaints. Well, at least, none from me.
simonjacobs · 10 Mar 2003, 11:28 UTC
One thing I feel is important (no hard data to back this up!) is the DOWNLOAD size. Obvious really when you think about it, but someone on a 56k modem will see an 8 meg download file as something that will take a whole hour to download. If your product looks exactly what they need they will do it, but they will be far less likely to give it a go to see what they think.
As for download size, even when I was on 56K I was downloading huge files, so it depends on the user.

I also spent all day downloading a music video on a 19.2 connection, so YMMV.

As for on-device storage, the only thing that bugs me is A. not being able to load the game onto the storage card (with my Memplug coming in, my main device memory is empty) and B. Obscene program memory requirements. Other than that, I really don't care.
simonjacobs · 10 Mar 2003, 13:31 UTC
sure, some people will, but if you are trying to get lots of sales you have to admit it is very possible that a lot of people will be far less likely to try out a game they are not sure about if it has a one hour download
I see what you mean. In that case of such a large game, a seperate set of demo files should be made, making the download much smaller. It's a pain, but it probably should be done to encourage downloads.
Yeah, but the flip side of that is that if I make a demo version of my game that's let's say under 1M, people will complain that they have to install the real thing when they purchase it. Can't win either way!
simonjacobs · 11 Mar 2003, 00:59 UTC
you mention not wanting to compress the resources due to load time, one positive thing is that obviously you can zip up the download and get the full compression for that even if you dont store the files compressed on the pocket pc itself

in actual fact compressing the resources with zlib shouldnt noticably affect the load time, in my experience. even on a slower machine like a smartphone its fine
Hmmm... Interesting thought about zLib not greatly affecting load time... As the game gets done I think I'll compress the resources and try it and see what the difference really turns out to be... If nothing else, I'll be able to post some more definitive answer on the subject... I really do suspect the impact won't be acceptable, but I'll give it a try none the less. I've been wrong once or twice in my life before ;)
simonjacobs wrote:
in actual fact compressing the resources with zlib shouldnt noticably affect the load time, in my experience. even on a slower machine like a smartphone its fine


This was a subject of interest to me recently and I'd like to offer my "research"

I wrote a couple of simple test drivers to test a couple of compression libraries (libbzip2 and zlib) on Pocket PC for performance. My test files included one 631KB wav audio file and one 226KB 24-bit Windows bitmap file. The bzip2 format compressed the wave audio file to 74% of its orginal size, and the bitmap file to 12% of its original size. The gzip format compressed the audio file to 83% of its original size, and the bitmap file to 13% of its original size. I ran each decompression test five times consecutively on my SA1110 powered Pocket PC with the following timing results:

Wave decompressed: 645464 bytes
bzip2 compressed: 476555 bytes
zlib compressed: 535714 bytes
bzip2 decompress: 6412, 6359, 6236, 6361, 6322 ms
zlib decompress: 397, 400, 407, 398, 395 ms

Image decompressed: 230456 bytes
bzip2 compressed: 27111 bytes
zlib compressed: 28924 bytes
bzip2 decompress: 793, 790, 789, 792, 798 ms
zlib decompress: 103, 103, 101, 103, 105 ms

I wrote a driver app for each library that simply opened the correct test file and noted the tick count before and after decompressing the complete file to a heap memory buffer. These tests were not strictly scientific. I used the high-level interface for libbzip2, and used the utility functions for zlib. I compiled libbzip2 myself and linked to it statically, while zlib was a DLL I got off the Internet. These tests were not run on a clean-reset PPC, but in fact I had one or two apps running in the background and an ActiveSync connection (more like the environment on a user device I would think). I had of course already heard that bzip2 is much slower, but wanted to test it on WinCE and see how it performed. It gets significantly better compression in some instances, at the cost of decompression speed. Zlib kicked libbzip2's butt in regard to speed and is the only one of the two suitable for decompressing game resources, IMO. Bzip2 might be suitable for significantly smaller resources, but probably would serve little appreciable benefit at that point. As a matter of unscientific conjecture from these results, zlib also seems less susceptible to the nature or complexity of the compressed data, yielding a more consistent ratio of decompression time to decompressed data size (ie, bzip2 has to try much harder to get better compression than gzip on some data, and thus takes longer to subsequently decompress it?). I do think bzip2 can be useful in Pocket PC apps where high compression is desirable, and possibly even games, just not when applied to resources that need to be quickly loaded at startup. By using zlib on similar or smaller sized image resources as that used here, you could easily decompress ~10 or possibly many more resources per second. I'd say up to 5 to 10 seconds isn't too long to wait on a game to startup.

One last disclaimer, is that knowing little about the zlib DLL I aquired for WinCE, I neglect the possibility that it has been highly optimized with ARM assembler or certain Windows hooks for speed, whereas I am aware that libbzip2 is highly portable standard C code, not to mention known performance issues related to the bzip2 file format.