by Dan East » Mar 17, 2001 @ 11:55am
Just FYI (this may be common knowledge already), if you unpak the .pak file so you have many individual files in subdirectories, it will both take more storage space, and take slightly longer to load. Here's why: the FAT filesystem used by CE has an allocation size of 4096 bytes. That means that each individual file's size is rounded up to a multiple of 4096. Thus, statistically, you can add on 2048 bytes per individual file. Plus, each subdirectory entry takes up somewhere in the neighborhood of 10k.<br>It takes longer to load because with a pak file, Quake opens it once and keeps it open. The pak file contains an index showing exactly how far to offset into the file to access a particular subfile. So to begin loading a subfile Quake does a single seek into a file that is already open. In the case of individual files, Quake has to ask Pocket PC to open the file. The OS then has to find the file, allocate a handle for it, then do whatever other overhead filesystem crap needs to be done. Then Quake can begin reading the file, after which it is closed, and the OS has to deallocate those resources.<br><br>Just an FYI thing...<br><br>Dan East