… | … | ||
---|---|---|---|
96 | $map->destroy; | 96 | $map->destroy; |
97 | } | 97 | } |
98 | }; | 98 | }; |
99 | } | 99 | } |
100 | 100 | ||
101 | # prefetch test, load some ocean-maps | ||
102 | if (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 | |||
101 | 1 | 114 | 1 |
102 | 115 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |