mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-08 14:34:04 -06:00
Huge speed boost by reducing the number of method calls in GCode.pm
This commit is contained in:
parent
73c05a6092
commit
055273fbc8
5 changed files with 85 additions and 64 deletions
|
@ -58,7 +58,7 @@ my $test = sub {
|
|||
my $one_axis_would_trigger_limit_without_pause = 0;
|
||||
foreach my $axis (qw(X Y)) {
|
||||
# are we changing direction on this axis?
|
||||
my $dir = $info->{"dist_$axis"} <=> 0;
|
||||
my $dir = $info->{"dist_$axis"} <=> ($args->{$axis} // $self->$axis);
|
||||
if ($dir != 0 && $dir{$axis} != $dir) {
|
||||
# this move changes direction on this axis
|
||||
if ($dir{$axis} != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue