# Delays in 'Paint' function using Wacom Cintiq22

**URL:** <https://discourse.slicer.org/t/delays-in-paint-function-using-wacom-cintiq22/19952>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [October 1, 2021, 2:17pm UTC](https://discourse.slicer.org/t/delays-in-paint-function-using-wacom-cintiq22/19952 "2021-10-01T14:17:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![softdent](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@softdent](https://discourse.slicer.org/u/softdent)\
**Post date:** [October 1, 2021, 2:17pm UTC](https://discourse.slicer.org/t/delays-in-paint-function-using-wacom-cintiq22/19952/1 "2021-10-01T14:17:42Z")

</div>

We’are using a Wacom Cintiq 22. and 3D slicer for 3D segmentation job for our research.  
Thank your for your great effort for the great software.

In your 3D slicer version 4.11.20210226, if we use the ‘Paint’ function with a Wacom pen in the Segmentation Editor, delay occurs like the attached picture.  
In 3D slicer 4.10.2, this delay of the ‘paint’ function does not occur when using a same Wacom pen.

Could it be solved in the next versions?

Thank you.

---

<div class="post-metadata">

**Author:** ![softdent](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@softdent](https://discourse.slicer.org/u/softdent)\
**Post date:** [October 1, 2021, 2:17pm UTC](https://discourse.slicer.org/t/delays-in-paint-function-using-wacom-cintiq22/19952/2 "2021-10-01T14:17:46Z")

</div>

We’are using a Wacom Cintiq 22. and 3D slicer for 3D segmentation job for our research.  
Thank your for your great effort for the great software.

In your 3D slicer version 4.11.20210226, if we use the ‘Paint’ function with a Wacom pen in the Segmentation Editor, delay occurs like the attached picture.

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/c/0c7d3cb772f6e6f0a4e8ef11d21b447263370571.jpeg)

In 3D slicer 4.10.2, this delay of the ‘paint’ function does not occur when using a same Wacom pen.

Could it be solved in the next versions?

Thank you.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 1, 2021, 7:08pm UTC](https://discourse.slicer.org/t/delays-in-paint-function-using-wacom-cintiq22/19952/3 "2021-10-01T19:08:38Z")

</div>

I cannot reproduce any delay using a Surface Pen:

[![](https://img.youtube.com/vi/vNuvI9socTw/maxresdefault.jpg "Image segmentation using pen and touchscreen") ](https://www.youtube.com/watch?v=vNuvI9socTw)

Current Surface Pens are excellent and you can also use a [Wacom Bamboo Ink](https://www.windowscentral.com/bamboo-ink-review). They cost less than $100 and allow you to draw on compatible screens similarly to the expensive Wacom Cintiq (the Cintiq costs 15x more).

If you want to stick to the Wacom Cintiq then there are a few things to try.

You can try to adjust your Wacom settings or follow tutorials on the web on how to reduce Wacom pen lag (such as [this page](https://fixthephoto.com/wacom-tablet-lagging.html)).

Try the latest Slicer Preview Release, there have been many fixes and improvements since 4.11.20210226.

You can also try if adjusting event processing settings make a difference. Copy-paste this code snippet into the Python console (Ctrl+3) in Slicer and see if Paint effect performance is improved in the Red slice view:

```python
paint=slicer.modules.segmenteditor.widgetRepresentation().self().editor.effectByName("Paint")
paint.delayedPaint=True
paint.minimumPaintPointDistance=20

```

Enabling event compression for tablet events (Qt::AA\_CompressHighFrequencyEvents, Qt::AA\_CompressTabletEvents - see [here](https://doc.qt.io/qt-5/qt.html#ApplicationAttribute-enum)) [in Slicer source code](https://github.com/Slicer/Slicer/blob/7a532d54df88a5ac034966e8e04d4b4b23a0362c/Libs/MRML/Widgets/qMRMLWidget.cxx#L144) might help with this issue, too, but you would need to [build Slicer from source code](https://slicer.readthedocs.io/en/latest/developer_guide/build_instructions/index.html) to try this.

This has been reported by another user some time ago, but then the correspondence stopped, so we closed the issue:

> <https://github.com/Slicer/Slicer/issues/5063>
>
> In 4.11.0-2020-07-20, I get the results below when trying to paint: the first is… with a pen on a Wacom tablet, the second with mouse. Both result from undersampled mouse tracking apparently, but it's especially bad with the pen! 
> 
> !\[with pen\](https://user-images.githubusercontent.com/11786553/88598339-1a39dd80-d037-11ea-97fc-cfc7f897ef49.jpg)
> !\[image\](https://user-images.githubusercontent.com/11786553/88598550-86b4dc80-d037-11ea-9051-0aa255252085.png)
> 
> \## Steps to reproduce
> 
> Start Slicer \[with all extensions disabled just in case\], load the sample CT chest volume, go to Segment Editor, create Segment, choose chest volume, choose paint, and the use pen or mouse.
> 
> \## Expected behavior
> 
> Smooth strokes from gazilions of circle imprints. Paint effect produced smooth strokes in 4.11.0.2020-01-08. 
> 
> \## Environment
> \- Slicer version: Slicer-4.11.0-2020-07-20
> \- Operating system: Windows

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 8, 2021, 1:33am UTC](https://discourse.slicer.org/t/delays-in-paint-function-using-wacom-cintiq22/19952/4 "2021-10-08T01:33:24Z")

</div>

I’ve now tested a recent Slicer Preview Release (Slicer-4.13-2021-10-05) With a Wacom Intuos BT M tablet on Windows 10 and everything worked perfectly. The only thing that did not work with the default configuration was right-click zoom in views - for that I had to disable “Windows Ink” mode.
