Avoid race condition when updating view matrix
authorSean Harmer <sean.harmer@kdab.com>
Sat, 7 Jun 2014 07:40:14 +0000 (08:40 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 7 Jun 2014 07:57:47 +0000 (09:57 +0200)
commit5f6a0140d18fab91ebe3a251b734c7e6698883d4
tree794adc454ee8da93d286fab826840a3f9f1af4a9
parent16be6c325f8b7970883fc3680101c22381f87a60
Avoid race condition when updating view matrix

Also add check on property name for the view matrix update.

This change fixes the occasional visual glitch when moving the camera
rapidly. The glitch was caused by the main thread updating the view
matrix as the job worker threads were reading it. To avoid locking we
use the standard QChangeArbiter route.

Change-Id: I2cd4a44de8f1df0e6b944710239656f697bb3235
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
src/core/transforms/transform.cpp
src/render/backend/rendernode.cpp