Strategy to performant display more than 100K items. #7076
-
|
I am using deck.gl 8.7.11, react-map-gl 6.1.19, react 18.2.0, maplibre-gl 2.1.9. I would like to display more than 100K items in one layer. The layer updates itself several times a second. Therefore I have a The number of items (and therefore the length) can change several times within one second. Several attributes of the data can change. For this reason the layer must be redrawn every render cycle. The problem is that the WebGL context is always rebuilt with this solution. To prevent this I thought of the following.
The problem: I don't know how to set single positions to invisible (also in shader with discard led to no result). What is the strategy to display this size of data without creating new data object every render cycle to avoid recreation of WebGL context ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Creating new data objects does not "recreate WebGL context". WebGL context is only created once when you first mount the DeckGL component. I think you are using advanced props without understanding what they mean. In the order of cheap to expensive operations, you have
By setting |
Beta Was this translation helpful? Give feedback.
Creating new data objects does not "recreate WebGL context". WebGL context is only created once when you first mount the DeckGL component.
I think you are using advanced props without understanding what they mean. In the order of cheap to expensive operations, you have
By setting
dataComparator = () => falseyou are forcing…