… | |
… | |
79 | our $CLEAN_RANDOM_MAPS = cf::periodic 3600, Coro::unblock_sub { |
79 | our $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 |
84 | if (1) { |
84 | if (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 ({ |