Skip to content
Discussion options

You must be logged in to vote

creating new data object every render cycle to avoid recreation of WebGL context

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

  • Redraw (zoom, pan, auto highlight etc.) - very cheap
  • Attribute update (single updateTrigger change) - cheap if using constant, expensive if using accessor function
  • Data update (data object shallowly changed, dataComparator returns false) - expensive, all attributes must be recalculated

By setting dataComparator = () => false you are forcing…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Pessimistress
Comment options

@euzu
Comment options

@Pessimistress
Comment options

@euzu
Comment options

@Pessimistress
Comment options

Answer selected by euzu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants