ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/map-scheduler.ext
(Generate patch)

Comparing deliantra/server/ext/map-scheduler.ext (file contents):
Revision 1.17 by root, Fri Jan 5 20:04:02 2007 UTC vs.
Revision 1.18 by root, Fri Jan 5 21:51:41 2007 UTC

1#! perl 1#! perl
2 2
3# this extension swaps out maps and resets them, in essence managing 3# this extension swaps out maps and resets them, in essence managing
4# the reset/swap policy of the server. 4# the reset/swap policy of the server.
5# it also contains the map prefetching logic
5 6
6our $DEACTIVATE_TIMEOUT = 20; # number of seconds after which maps get deactivated to save cpu 7our $DEACTIVATE_TIMEOUT = 20; # number of seconds after which maps get deactivated to save cpu
7our $SWAP_TIMEOUT = 35; # number of seconds after which maps inactive get swapped out 8our $SWAP_TIMEOUT = 35; # number of seconds after which maps inactive get swapped out
8our $SCHEDULE_INTERVAL = 2; # time the map scheduler sleeps between runs 9our $SCHEDULE_INTERVAL = 2; # time the map scheduler sleeps between runs
9our $SAVE_TIMEOUT = 20; # save maps every n seconds 10our $SAVE_TIMEOUT = 20; # save maps every n seconds

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines