summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_model-view-programming.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-02-03 16:06:15 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2011-02-03 17:01:58 (GMT)
commit30dee4f433d2426ce2dc0bccda8e62683380a1c4 (patch)
treeb19ee21df2a11dd6463ac93393eec359fa5eae32 /doc/src/snippets/code/doc_src_model-view-programming.cpp
parent68f78ba6be29b839433d924b5dc348d6d94b3d43 (diff)
downloadQt-30dee4f433d2426ce2dc0bccda8e62683380a1c4.zip
Qt-30dee4f433d2426ce2dc0bccda8e62683380a1c4.tar.gz
Qt-30dee4f433d2426ce2dc0bccda8e62683380a1c4.tar.bz2
Improve performance of partial updates in raster window surface on X11.
An XSync is needed to prevent the raster engine from writing to the shared memory raster backbuffer at the same time the X server reads from it. However, instead of doing the sync right after telling X to blit, we can do it right before we start writing to it with raster. At this point there will on average be less processing heavy X commands in the command queue, and we thus spend less time blocking the GUI thread. Measured frame rate improvement of 20 - 60 % in an update stress testing the performance of partial updates. Idea-from: Olivier Goffart Reviewed-by: Bjørn Erik Nilsen
Diffstat (limited to 'doc/src/snippets/code/doc_src_model-view-programming.cpp')
0 files changed, 0 insertions, 0 deletions