Synchronize first update after wake-up with VSync
authorPaul Wisbey <p.wisbey@samsung.com>
Tue, 3 Jun 2014 08:00:59 +0000 (17:00 +0900)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 10 Jun 2014 16:00:46 +0000 (17:00 +0100)
commit91d46303990fdf36d3b0351c67b703511557b9a1
treec5373b119172f0e61a211fdb30cf6dbafa916c8d
parentd8836b6fba2c49aa44a060738f6e1f6793b9e6b3
Synchronize first update after wake-up with VSync

[problem]      Triple buffering in DDK is causing touch gesture lag
[cause]        Multiple renders in the same VSync period
[solution]     Synchronize the first update with VSync; this avoids
rendering twice in the same VSync period, provided that update & render
take less than 16ms (which is usually the case)
adaptors/base/update-render-synchronization.cpp
adaptors/base/update-render-synchronization.h