My goal is to create a smooth animation of a painteffects stroke advancing along it's curve, not using clipping from the reasons above.
In the screenshots above I try just to convey the problem, but it's a typical case to what I'm trying to acheive.
my endTime is set to 0.1 secnods only for this example. I expect the animation to be in a total length of 1 second, so this means that the visible length of the stroke should be 10% of it's curve. Unfortunately, the animation doesn't take exactly 1 second since it's duration depends on the flowSpeed. So my problem of perfecting the duration of the animation is reduced to determining the flowSpeed. I noticed that to create an animation length of 1 second with different strokes in different lengths requires setting different flowSpeeds, so I hoped that there's a constant ratio between the length of the stroke's curve and the flowSpeed, but apparently it depends on other parameters as well. I couldn't find and formula to determine the flowSpeed so the animation would take the expected time.
Regrading your suggestions:
1. True, but this would be different for each stroke and I couldn't find a rule. I'm trying to apply this to many strokes and I can't do this manually.
2. If I don't find the exact flowSpeed value, I wouldn't get the exact duration I want. If the flowSpeed is too high then the stroke would disappear too quickly.
3. No. Gaps operate on the tubes, not on the stroke.
4. The visual quality of the painteffects when reduced to polygons is too low for me.