Open vsaase opened 3 years ago
on investigating this I found two things that are inefficient :
here is an example of how to speed up the segmentation drawing with caching the canvas element: https://github.com/vsaase/cornerstoneTools/tree/vsaase_segmentationlag This is not ready to be merged, at the moment it breaks the brush tool and does not work with segmentation outlines. Similar caching could be done with the outlines. Any suggestions? Are there preferred ways to implement it?
@vsaase Thank you for investigating this issue. I also depend on it. Although I started to use this library just recently if there is anything I can help please let me know.
Prerequisites
using the example https://tools.cornerstonejs.org/examples/tools/circle-scissors.html
Description
See this peformance issue:
Steps to Reproduce the issue
Expected behavior: (What you expected to happen) smooth drawing
Actual behavior: (What actually happened) pauses, about half a second on my machine This is a real problem because if I am drawing a segmentation and a pause happens the segmentation is not done correctly and has to be corrected. This happens with all segmentation tools and is aggravated when there is already some segmentation on the screen.