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

Comparing deliantra/server/ext/map-random.ext (file contents):
Revision 1.23 by root, Fri May 2 21:01:53 2008 UTC vs.
Revision 1.25 by root, Sat May 3 15:17:13 2008 UTC

79our $CLEAN_RANDOM_MAPS = cf::periodic 3600, Coro::unblock_sub { 79our $CLEAN_RANDOM_MAPS = cf::periodic 3600, Coro::unblock_sub {
80 clean_random_maps; 80 clean_random_maps;
81}; 81};
82 82
83# map generator stresstest, NEVER enable under normal circumstances 83# map generator stresstest, NEVER enable under normal circumstances
84if (1) { 84if (0) {
85 cf::async { 85 cf::async {
86 my $seed = 0; 86 my $seed = 0;
87 while () { 87 while () {
88 my $map = cf::map::new; 88 my $map = cf::map::new;
89 $map->generate_random_map ({ 89 $map->generate_random_map ({
96 $map->destroy; 96 $map->destroy;
97 } 97 }
98 }; 98 };
99} 99}
100 100
101# prefetch test, load some ocean-maps
102if (0) {
103 cf::async {
104 # 0.58
105 Coro::Timer::sleep 2;
106 for my $x (200..219) {
107 for my $y (200..219) {
108 (cf::map::find "/world/world_$x\_$y")->load;
109 }
110 }
111 };
112}
113
1011 1141
102 115

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines