Paint and Wipe tools try to update too many things at once when painting:
- if "showVolume" property is set to true for the segmentation (default), each update will trigger Image::ComputeImageStatistics() for the whole volume
- the working slice is extracted using SegTool2D::GetAffectedImageSliceAs2DImage everytime, although extracting the slice once should be sufficient
- undo information is collected and saved for every modified pixel
- the feedback contour seems to be initialized and copied a bit more than necessary
Alltogether, this leads to painfully slow updates which make both tools completely unusable.
Suggestions:
- switch off "showVolume" property while painting
- extract slice only once when mouse button is pressed and work on that one the whole time
- only update the 3D image (with undo info) when mouse button is released, until then try to use the working slice for feed-back