Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CF: maps




> One more thing. If the server is not a production server (i.e. you are
> the only person on it), you can just well remove all the cftmp* files,
> or (if the tmp/ is unique to crossfire) clear out all files in
> tmp/. This speeds up things quite a bit :-)

 True.  It also has the advantage that you don't need to restart the server in
that case, which saves at least some startup and login time.

>
> Also, you have to wait some time after leaving the map before the temp
> map is actually written out. I'm not sure, but you might even have to
> run through some other map to cause the temp maps to be written.

 Actually, there are several things that control this.

 First, any map with a player on it will not be swapped out for obvious
reasons.

 However, beyond that there is MAP_MAXTIMEOUT and MAP_MINTIMEOUT - these
determine the number of ticks it will take before th map is swapped out.  If
doing debugging and you want it swapped out quickly, set both to zero, and the
map should be swapped out the second a player leaves it (this may be an over
simplification, but is somewhat close.)

 The other value of MAX_OBJECTS - if the number of objects exceed this due to
several loaded maps, crossfire will start looking for maps to swap out,and will
swap out faster than MAP_MAXTIMEOUT.


-- 

-- Mark Wedel
mark@pyramid.com


References: