drawing a time dynamic polyline of variable length

1. A concise explanation of the problem you’re experiencing.

I’m trying to render and growing and shrinking polyline over time. It is represented by an array of Cartesian3s.

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

I’ve been mapping the points to indices of an array with times using SampledPositionProperties. This array is converted to a PositionPropertyArray at runtime.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

This is very slow and is bogging down my computer when the polyline grows and shrinks from no points to thousands of points. I thought I might be able to render the line once, and just color it based on time, but I cannot seem to do that.

Anyone have any ideas on how to color a line based on time? I looked into using polyline graphics with a CallbackProperty as the color array but that doesn’t seem to be the way.