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

Zooming in on Bezier Curves leads to freeze #19

Closed
hageldave opened this issue Jul 15, 2020 · 0 comments
Closed

Zooming in on Bezier Curves leads to freeze #19

hageldave opened this issue Jul 15, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@hageldave
Copy link
Owner

The subdivision routine generates segments of max 30 (?) pixels length to yield a smooth looking curve. When zooming in on a bezier curve many of these segments are generated for the whole curve even when they are outside of the view. In extreme cases so many segments are created that building the vertex array (presumably) takes very long so that the UI freezes on draw.

The subdivision routine needs to cull (or not generate) segments that are outside of the view to avoid this issue.

@hageldave hageldave added the bug Something isn't working label Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant