On Fri, 02 Dec 2011 04:14:14 -0600 DRC <dcomman...@users.sourceforge.net> wrote:
> On 12/2/11 3:19 AM, Pierre Ossman wrote: > > Annoying. I did some work at making the thing more asynchronous, but > > more might be needed. If the problem is getting the data on the wire > > rather than the actual encoding, then a quick fix is increasing the > > outgoing buffer size. As long as your entire update fits in there, then > > X won't be throttled (and the update timer should also be more precise). > > Not sure if I follow. It's not the send delay that's the problem-- it's > the time that the CPU takes to encode the framebuffer. Just wanted to double check that you've looked at actual CPU time, and not the wall time it spends in writeFramebufferUpdate(). The latter includes both CPU time and the time needed to drain the socket buffer (if it fills). > Now, with the latest TigerVNC code, my understanding of it is that > FBUR's no longer result in an immediate FBU unless there is no deferred > update currently in progress. Thus, almost all updates will be deferred > updates now. That means that we're always going to incur the overhead > of the deferred update timer on every frame. Indeed. The purpose of the deferred updates is to aggregate X11 stuff, and so should be fairly independent of what the VNC clients are up to. Note that FBUR:s still have some influence here as it will continue to aggregate stuff (and not reset the timer) if there is no client ready. As to a solution, the only "proper" one is to reduce the time spent encoding stuff. We can't really do it in the background as we can't allow the framebuffer to be modified whilst we're encoding. Double buffering is one way to go, but I wouldn't be surprised if the copying between the buffers would eat up any performance gain. That said, perhaps we can consider treating this as a corner case and dial back the aggregation when we are hitting the CPU wall. Rgds -- Pierre Ossman OpenSource-based Thin Client Technology System Developer Telephone: +46-13-21 46 00 Cendio AB Web: http://www.cendio.com A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________ Tigervnc-devel mailing list Tigervnc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-devel