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

[Performance] Only rerender changed elements #2

Open
JulianAssmann opened this issue Jun 21, 2021 · 0 comments
Open

[Performance] Only rerender changed elements #2

JulianAssmann opened this issue Jun 21, 2021 · 0 comments
Labels
performance Performance improvements

Comments

@JulianAssmann
Copy link
Owner

Currently, if a single argument changes in the configuration, the entire gauge is rerendered. E.g. every time the value changes, not only the pointer is updated, but all axes, segments, ticks, etc. are rerendered. This is obviously very resource-intensive.

Splitting the rendering of different elements like the segments, ticks and pointers to different render elements like RenderRadialSegment, RenderRadialTicks and RenderRadialPointer and only rendering after changes might improve the performance. Currently, all elements are rendered by a single RenderBox:
RenderRadialGauge.

@JulianAssmann JulianAssmann added the performance Performance improvements label Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance improvements
Projects
None yet
Development

No branches or pull requests

1 participant