Slow cold start

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Slow cold start

Post by NoQ »

Rather a success story.

All these years i've been suffering from a slow cold start: the game took a lot of time to start for the first time, with a lot of hard drive work, this all was during the final phase of game start before the actual game, so when it was a multiplayer game many players didn't have enough patience to wait for me and left (about a minute or so).

Now i finally found a workaround: after compiling the game from source, remove data/base and data/mp folders! base.wz and mp.wz load instantly, but when unpacked they cause a lot of file system work due to reading many small files.

Applicable to 2.3 and 3.1, and since around 3.1_rc2 this also causes slowdown before the main menu appears.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Slow cold start

Post by Per »

Do you remove the built directories with the base.wz and mp.wz files, or the source data directories with all the small files?
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Slow cold start

Post by NoQ »

Source ones. base/data/ and base/mp/