Skip to content
Snippets Groups Projects

Add blocking processing of drawing event

Merged 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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading