Hello, so I have this issue where the model will ‘flicker’ whenever I update the position. Here is a sandcastle that reproduces the bug
If you just have a static (yellow) polyline and the model moving about it, there is no flicker. If you attach a polyline to the model and move that with it as well, there is a flicker. Notice that the polyline does not flicker, only the model, and that’s despite the model being what is being tracked, not the polyline.
Upon using my iPhone slow motion camera to see what is happening, it appears that the model is jumping forward to its next point and leaving the camera behind, and the next frame or so the camera will jump back to the model where it’s supposed to be.
I am simulating my use case by using a setInterval to update the point’s position, but in reality the ‘position’ is something I receive in real time. So I cannot know the future to use animations.
I am a good developer who searches google before asking questions, however the solution that I see is to use a callback property, thought that is not feasible for me either. Here is a sandcastle that uses a callback property to update the position of the perpendicular line, and that does fix it, but you can see the performance issues that are caused by the CallbackProperty when you crank up the number of points in the perpendicular line. That’s because CallbackProperty gets called every single frame, and Cesium cant handle redrawing the polyline every single frame even for a relatively modest number of points like 1000.
So does anyone know of a clever way to get around the flicker without using a callback property / animations?
Thank you