Skip to content
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

Perfomance improvements #43

Closed
1 of 5 tasks
kelvinabrokwa opened this issue Jul 25, 2015 · 2 comments
Closed
1 of 5 tasks

Perfomance improvements #43

kelvinabrokwa opened this issue Jul 25, 2015 · 2 comments

Comments

@kelvinabrokwa
Copy link
Contributor

gl-draw, as is, is virtually unuseable. However, its a great test-case for gl-js on-the-fly rendering capabilities. That being said, there many optimizations in the javascript here that can ameliorate this.

To do:

Upstream:

  • check out zoom and pan implementations in mapbox-gl-js for tips and tricks on animation
@kelvinabrokwa
Copy link
Contributor Author

Initial notes and observations

mousedown on feature followed by onmousemove event for square geometry

perf

Below is a snapshot of a single onmousemove event

image

translate and update could use work but even then the bulk of the work is upstream (gl-js). In translate, its project and unproject. In update its render (which calls setData)

In 5 lines of translate we have:

the initial call to drag is actually slower than the rendering process!
image

@kelvinabrokwa
Copy link
Contributor Author

Closing for now, will reopen if this becomes more actionable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant