Skip to content

Add blocking processing of drawing event

d.kilic requested to merge 236-show-current-point into master

We have a race condition. The TrackerItem gets the current frame from Animation, but that is not the last processed frame. It is the last read frame. If the new frame is read, before the last processed frame is drawn, we get this error. See following debug output

Update Image processed frame 14
Reading in frame 15
Drawing frame 15

Adding a qApp->processEvents() makes the update happen in a blocking fashion, so that the order is preserved. This fixes the problem quick and dirty.

The proper way to resolve this would be to differentiate between last read frame and last processed frame.

Closes #236 (closed)

Merge request reports