melowntech / vts-browser-js

JavaScript WebGL 3D map rendering engine
BSD 2-Clause "Simplified" License
218 stars 42 forks source link

Performance issue with adding geodata at high rates #185

Open skazemi opened 4 years ago

skazemi commented 4 years ago

Hi, I encounter performance issues with the map when adding/updating geodata at a high rate to the map using the following methods: 1-Adding geodata as a freelayer: In this case when the number of layers grows, map becomes very slow until out of memory occurs (probably caused by layers workers) 2-Rendering geodata with dynamic rendering (onCustomRender) without adding freelayer: in this case, onCustomRender slows down with an increasing number of items to be rendered. I wonder if there is a better way to do this? Thanks

davidmtech commented 4 years ago

Unfortunately there are no other methods provided by API. You can try to extend existing rendering methods used by "CustomRender". For example make them render more points in one draw call.

skazemi commented 3 years ago

@davidmtech Thanks for your guidance. I tried to simplify paths to speedup onCustomRender. Is there a way to change free layer geodata and style properties without removing/adding the whole layer (partial updates)?

jrjdavidson commented 3 years ago

I am wondering the same thing- is there a way to dynamically change the style object, once the freelayer has been created?