addLayer performance

classic Classic list List threaded Threaded
1 message Options
JD JD
Reply | Threaded
Open this post in threaded view
|

addLayer performance

Hi,

I need to add several vector layers at runtime.
All those layers are quite big but all of them have a <layout/>.

The 25 layers are added to the MAP through an osg event thus it is executed during the frame and it blocks the rendering.
The process takes 4 seconds, but i thought that using the layout mechanism the process would not block the frame (because i expected that all the process is sent to the DBPager thread).

So what is done when addLayer is executed, what can lead to 4 seconds?

Thank you,
Jérôme.