Cheep
Новичок
Оптимизация GD
Вот есть такой код.
=> 171 imagecopy и imagecreatefromgif делаеться. Как можно по другому сделать быстро?
Вот есть такой код.
PHP:
for($x=0; $x<=19; $x++)
{
for($y=0; $y<=9; $y++)
{
$tile = imagecreatefromgif("http://localhost/my/img/map/mount.gif");
imagecopy($img, $tile, (($start['x']+$x)*40), (($start['y']+$y)*40), 0, 0, 40, 40);
}
}