Performance improvements in reloading the 3D scene.

Now the 3D scene loading is postponed until the page is visible.
This commit is contained in:
bubnikv 2017-05-31 17:05:11 +02:00
parent 556f40bf00
commit ee5ee5f432
4 changed files with 57 additions and 40 deletions

View file

@ -134,7 +134,7 @@ sub _init_tabpanel {
no_controller => $self->{no_controller});
# Callback to be executed after any of the configuration fields (Perl class Slic3r::GUI::OptionsGroup::Field) change their value.
$tab->on_value_change(sub {
my ($opt_key, $value) = @_;
my ($opt_key, $value) = @_;
my $config = $tab->config;
if ($self->{plater}) {
$self->{plater}->on_config_change($config); # propagate config change events to the plater