Motion with constant speed along a spline with a variable length in real time

It turns out that you need to fix the already traveled path in some way.