Fix the frame sync issue in COMBINED_UPDATE_RENDER mode 75/134275/4
authorRichard Huang <r.huang@samsung.com>
Thu, 15 Jun 2017 16:16:11 +0000 (17:16 +0100)
committerRichard Huang <r.huang@samsung.com>
Mon, 26 Jun 2017 16:33:30 +0000 (17:33 +0100)
commit71cb347f8911e738e99cd21edc8a47301a9ea590
treeae5e1acdd0f085c1928c63b0f51173599f34c413
parent6cf2d49b47c78116e46558aa0b6a83617986a8bd
Fix the frame sync issue in COMBINED_UPDATE_RENDER mode

There could be a small gap between the start time of the current frame and the
sleep-until time calculated in the previous frame. In addition, the update or
rendering in the current frame could take too much time so that the calculated
sleep-until time has already passed. In order to make the frames keep syncing
to the default frame duration (i.e. 16 ms) in these cases, we should keep tracking
any extra time taken by the current frame and shorten the duration of the next frame
accordingly.

Change-Id: Ic3dcbfbc5b8aded6514310ee17843839daf12f03
adaptors/base/combined-update-render/combined-update-render-controller.cpp
adaptors/base/combined-update-render/combined-update-render-controller.h