It reduces the time twinkling.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@119
3789f03b-4d11-0410-bbf8-
ca57d06f2519
void RfbPlayer::run() {
long initTime = -1;
+ long update_time = GetTickCount();
// Process the rfb messages
while (fRun) {
setPos(initTime);
initTime = -1;
}
- if (!isSeeking())
+ if ((!isSeeking()) && ((GetTickCount() - update_time) >= 250)) {
updatePos();
+ update_time = GetTickCount();
+ }
processMsg();
} catch (rdr::Exception e) {
if (strcmp(e.str(), "[End Of File]") == 0) {