Finished porting Slic3r::GCode to XS (speed boost!)

This commit is contained in:
Alessandro Ranellucci 2015-07-02 20:24:16 +02:00
parent 0ad4296aaf
commit 3e739b87da
11 changed files with 208 additions and 167 deletions

View file

@ -43,7 +43,7 @@ sub process {
my $rel_flow_rate = $info->{dist_E} / $info->{dist_XY};
# Then calculate absolute flow rate (mm/sec of feedstock)
my $flow_rate = $rel_flow_rate * $args->{F} / 60;
my $flow_rate = $rel_flow_rate * $F / 60;
# And finally calculate advance by using the user-configured K factor.
my $new_advance = $self->config->pressure_advance * ($flow_rate**2);