-
Notifications
You must be signed in to change notification settings - Fork 334
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
[Feature Request] Reduce Brushing Lag with LABELMAP_EDGE_PROJECTION_BLEND #1812
Comments
Maybe we should do a debounce or something for it packages/tools/src/tools/displayTools/Labelmap/addVolumesAsIndependentComponents.ts onSegmentationDataModified Maybe try a debounced version and i can merge |
Thank you for the information! If no one has enough time to work on it, I'll take a look when I get the chance. |
Hi @sedghi , I tried making some changes to improve the performance by referring to your suggestion. Do you think I’m on the right path? Additionally, I’m encountering an issue where the segmentation rendering is delayed. 2025-02-19.13.28.19.mov |
I don't think this is the right path, maybe look at how we can calculate index without doing the getAtIndex |
Thank you for your quick reply! I'd like to know more details about what you meant. I believe the bottleneck is the following part of the for (const z of slices) {
for (let y = 0; y < dims[1]; ++y) {
for (let x = 0; x < dims[0]; ++x) {
const iTuple = x + dims[0] * (y + dims[1] * z);
baseData[iTuple * newComp + 1] = segVoxelManager.getAtIndex(
iTuple
) as number;
}
}
} I still don't understand how looking into ways to calculate the index without using |
What feature or change would you like to see made?
Using
LABELMAP_EDGE_PROJECTION_BLEND
makes the brushing function sluggish.I’ve prepared an example to reproduce this issue. In the example, two additional MIP viewports have been added, and you can observe that brushing becomes very sluggish.
I also confirmed that even having just one or two MIP viewports with
LABELMAP_EDGE_PROJECTION_BLEND
makes the brushing noticeably sluggish.I’d really appreciate it if this feature could be optimized to make the brushing smoother.
Why should we prioritize this feature?
Because it’s common to have two MIP viewports for sagittal and coronal orientations.
The text was updated successfully, but these errors were encountered: