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

More efficient color map handling for cell types #499

Open
ykevu opened this issue Jul 22, 2023 · 0 comments
Open

More efficient color map handling for cell types #499

ykevu opened this issue Jul 22, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ykevu
Copy link
Collaborator

ykevu commented Jul 22, 2023

Right now, the color map that is used to determine which cells are colored what based on cell types is completely recalculated after certain events are fired in the cellTypes state machine; however, this can be made more efficient in terms of how much is recalculated and when/how often the recalculations are made.

This is likely why pulling the opacity sliders around can cause some lag; a workaround for this in addition can be to only perform the calculation once the user releases the slider instead of continuously updating it, but that might look a little jank with the canvas.

@ykevu ykevu added the enhancement New feature or request label Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant