Re: XML was RE: [GD-General] RE: A portable preferences library
Brought to you by:
vexxed72
From: Alen L. <ale...@cr...> - 2003-12-16 14:37:35
|
> The PlaneShift game (made with CS) has about 25 megabytes (uncompressed) > of XML files (aggregated > in four big files) of level data. On my Linux system at home (an Athlon > XP2000) the levels load > in about 16-20 seconds. There is a mistake in your reasoning, isn't it? You say that we shouldn't look at the size of the uncompressed XML data. Then you start profiling how many uncompressed MB/s can you load. You should look at the number of compressed MB/s. If running from harddisk, you should be loading between 5-20MB/s (depending on speed of the drive). Anything less than 5MB, and you are very CPU limited. And you should _never_ be CPU limited while loading. Not even close. If you are CPU limited on a 2GHz CPU, think about all the poor 700MHz Celeron users trying to load your game. There is no excuse for loading data at less speed than the media can stream. Think about whether your users like to wait 20 seconds to load a level. If it could be loaded in 5, or even less... Can you get some more accurate profile? Alen |