Here are some pointers for the slow rendering:
- Setting
clampToGround
to true will slow the drawing down, since ground polylines are expensive to compute especially if you are not using a computer that has a graphics card for hardware acceleration. SettingclampToGround
to false should help with performance. - What Omar said about web workers in the thread that you linked is still relevant.
-
CallbackProperty
will force the line to draw synchronously, but it also makes it re-render every frame, which is probably not something you want if the user has finished drawing the polylines. This is a drawback of the Entity API and there isn’t a way to force the line to only draw synchronously once. Have you considered using the Primitive API instead?