openlayers icon indicating copy to clipboard operation
openlayers copied to clipboard

webgl memory leak

Open 752841728 opened this issue 1 year ago • 1 comments

在官网的例子中,我似乎发现了内存泄漏,每次平移或者缩放时,内存就会增加,特别是数据量较大的时候,浏览器会因为内存的增加而变得卡顿

下面是我打开官网的例子测试的情况,可以看到内存一直在增加且无法清除 image

752841728 avatar Jun 13 '24 01:06 752841728

Could you please test again with the main branch and report here whether the issue still happens? Thank you!

jahow avatar Jun 28 '24 17:06 jahow

   Hi @jahow .  about VectorLayer.js——renderer.generateBuffers(this.batch_, transform).

   If submit a big batch of features to render, webworker of webgl always report "RangeError: Invalid array length".  

   If cut the big batch into some small batches, then submit the small batches, webgl can show much more features, but the features can't be selected rightly.  Click feature A, but return Feature B. 

   How to cut the big batch into many small batch to render and click, aim to load much more features.  thank you.

leizhangc avatar Oct 23 '24 09:10 leizhangc