Stepper accelerate decelerate code help

I found code for stepper in Accelstepper library (bounce).
I use tb6600 on 37vdc and stepper Nema34 3A.

But I have problem in a full step 1/1.
Lose steps when accelerate and decelerate.
In 1/2 microstep lose stepps same but lower.
Best work in 1/8 microsteps , but is wery slow.
I put zeros in ,,spedMax'' but do nothing, nothing change.
How to speed up (1/8) to work like in a fullstep 1/1?

// Bounce.pde
// -- mode: C++ --
//
// Make a single stepper bounce from one limit to another
//
// Copyright (C) 2012 Mike McCauley
// $Id: Random.pde,v 1.1 2011/01/05 01:51:01 mikem Exp mikem $
#include <AccelStepper.h>
// Define a stepper and the pins it will use
AccelStepper stepper; // Defaults to AccelStepper::FULL4WIRE (4 pins) on 2, 3, 4, 5
#define motorPin1 2;
#define motorPin2 5;
void setup()
{
// Change these to suit your stepper if you want
stepper.setMaxSpeed(9999);
stepper.setAcceleration(3600);
stepper.moveTo(10000);
}
void loop()
{
// If at the end of travel go to the other end
if (stepper.distanceToGo() == 0)

stepper.moveTo(-stepper.currentPosition());
stepper.run();
}

How to speed up (1/8) to work like in a fullstep 1/1?

How can I take 8 steps in the time it takes to make 1? The answer is quite simple. You can't.

This is wrong for driver that takes step and direction signals

AccelStepper stepper; // Defaults to AccelStepper::FULL4WIRE (4 pins) on 2, 3, 4, 5

You need to use the DRIVER option - see the AccelStepper documentation

And please modify your post and use the code button </> so your code looks like this and is easy to copy to a text editor. See How to use the Forum

...R