-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak when updating from geojson at 15Hz in 3d mode #477
Comments
The synchronization of the OpenLayers source with Cesium is done in There may be some missing cleanup in OL-Cesium or as you said it might be in Cesium itself. Your workaround looks good to me and is actually a good approach for data updating quickly. |
So is the problem with ol-cesium or cesium itself ??? |
Since the globe disappears, it looks like a problem in Cesium. Are you experiencing the same flickering? To my knowledge no one is working on it. The steps would be:
I agree it would be great if someone could take some time to dig into it. |
ok, I have had a look at the example outlined and yes I am seeing the same problem only much worse as I am removing and adding the layer 15 times a second, hence unusable. You say that this is already reported on Cesium, can you give me the number ??? |
No, I said it was reported in OL-Cesium. I quickly searched for flickering issues in Cesium but none looks related to what we see. |
Ok, so could you let me know what the number is on ol-cesium, many thanks :-) |
Sure, see #465. |
So our problem is when updating a vector source with geojson, the first thing that we do is clear the source and then reload the source features from a GeoJSON object returned via a websocket. The memory leak can be catastrophic and needs to be addressed either by ol-cesium issuing a command to cesium to release resource or for cesium to be updated to correctly clean-up after itself.
To summarise, there are up to 2000 geojson points/features which require updating at 15Hz, which are being supplied over websocket NOT from file.
Original Code - on change to vectorData
I do have a workaround but it causes a great deal of flicker on the 3d map...
Workaround (Bad flicker in 3d) - on change to vectorData
My question, is there a better way to do this or do I need to live with the flicker... ???
The text was updated successfully, but these errors were encountered: