PgrAm
Experienced Member
Hi,
As I've been working on my DOS game I've been trying a few different things to save disk space as keeping it on a single floppy would save significant money on release. I've already used some compression on data files which has been a big win (thanks Trixter for help with that). I started thinking about a few files I had for the game that were about ~100 bytes each, but there were quite a few of them. These are things such as byte-code files for short scripts, walkbox data and some animation data. I thought that since the FAT12 sector size is 512 bytes that these files were wasting about ~400 bytes each, since I figured that each file gets allocated at least one sector. I think this is the reason why games like DOOM stored all the data in a single WAD file, I figured I should try doing something similar or at least make sure to merge files smaller than 512 bytes.
Does anyone have any info on this? Is my reasoning correct?
As I've been working on my DOS game I've been trying a few different things to save disk space as keeping it on a single floppy would save significant money on release. I've already used some compression on data files which has been a big win (thanks Trixter for help with that). I started thinking about a few files I had for the game that were about ~100 bytes each, but there were quite a few of them. These are things such as byte-code files for short scripts, walkbox data and some animation data. I thought that since the FAT12 sector size is 512 bytes that these files were wasting about ~400 bytes each, since I figured that each file gets allocated at least one sector. I think this is the reason why games like DOOM stored all the data in a single WAD file, I figured I should try doing something similar or at least make sure to merge files smaller than 512 bytes.
Does anyone have any info on this? Is my reasoning correct?