diff options
author | Pierre Ossman <ossman@cendio.se> | 2017-01-11 18:32:16 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2017-01-11 18:40:48 +0100 |
commit | 0f626ad79a1259904db70f12ba1682910d9155c8 (patch) | |
tree | a0a12d25ab7b33f6bb25fe6d0b86e7cf1ad5332f /vncviewer/CConn.cxx | |
parent | 712cf8673d6e57442f41636e44020f5e1839c7f8 (diff) | |
download | tigervnc-0f626ad79a1259904db70f12ba1682910d9155c8.tar.gz tigervnc-0f626ad79a1259904db70f12ba1682910d9155c8.zip |
Do explict sync after XShmPutImage()
The complex logic waiting for events didn't result in any added
performance, so use the simpler approach.
Diffstat (limited to 'vncviewer/CConn.cxx')
-rw-r--r-- | vncviewer/CConn.cxx | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx index baf01d41..cc356263 100644 --- a/vncviewer/CConn.cxx +++ b/vncviewer/CConn.cxx @@ -346,9 +346,6 @@ void CConn::setName(const char* name) // one. void CConn::framebufferUpdateStart() { - ModifiablePixelBuffer* pb; - PlatformPixelBuffer* ppb; - CConnection::framebufferUpdateStart(); // Note: This might not be true if sync fences are supported @@ -356,22 +353,6 @@ void CConn::framebufferUpdateStart() requestNewUpdate(); - // We might still be rendering the previous update - pb = getFramebuffer(); - assert(pb != NULL); - ppb = dynamic_cast<PlatformPixelBuffer*>(pb); - assert(ppb != NULL); - if (ppb->isRendering()) { - // Need to stop monitoring the socket or we'll just busy loop - assert(sock != NULL); - Fl::remove_fd(sock->getFd()); - - while (ppb->isRendering()) - run_mainloop(); - - Fl::add_fd(sock->getFd(), FL_READ | FL_EXCEPT, socketEvent, this); - } - // Update the screen prematurely for very slow updates Fl::add_timeout(1.0, handleUpdateTimeout, this); } |