… | |
… | |
422 | } |
422 | } |
423 | |
423 | |
424 | sub face_update { |
424 | sub face_update { |
425 | my ($self, $facenum, $face) = @_; |
425 | my ($self, $facenum, $face) = @_; |
426 | |
426 | |
427 | $self->{tilecache}->put ($face->{id} => $face->{image}); #TODO: try to avoid duplicate writes |
427 | $self->{tilecache}->put ($face->{id} => $face->{image}) |
|
|
428 | if $self->{tilecache}->get ($face->{id}) ne $face->{image}; |
428 | |
429 | |
429 | $self->set_texture ($face->{id} => delete $face->{image}); |
430 | $self->set_texture ($face->{id} => delete $face->{image}); |
430 | } |
431 | } |
431 | |
432 | |
432 | sub set_texture { |
433 | sub set_texture { |