The problem is caused by accelerating and decellerating for every line segment rather than smoothly accelerating and decellerating only where necessary. You're using an old version of Sprinter, or some even older firmware. Solution: update to a newer Sprinter or use Marlin.