[cairo-bugs] [Bug 75524] Shared Memory queuing up in xlib backend for slow X Server 1.9.5

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Mar 25 08:20:05 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=75524

--- Comment #6 from kasberger at heidenhain.de ---
(In reply to comment #5)
> My point is that the client is pushing data faster than the Xserver can
> render it, so the client is building up a massive output latency. It tends
> to cause very annoying lag. However, how to close that feedback loop is not
> obvious and may require an extra interface in cairo (something like
> cairo_device_throttle).

Yes, I agree. But if a client should do active throtteling means the client
needs two things
a) intelligence when throtteling is useful. How to measure the speed of a
xserver?
b) intelligence how to throttle down

What about a kind of callback each time called when the cairo xlib backend
allocates/deallocate a shared memory arena? For the client it would be a good
hint there is something strange with xserver
Or can you think for other measuremnt parameters indicating a a xserver load ?

Oh I think I am too directly attached to my problem. 
What about cairo_device_throttle_strategy(..) e.g. with NONE (=old behavior),
COWARD (=try to get in sync with xserver every time), BEST (=sync if really
needed) ?

Maybe second solution would be much better. What do you think?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20140325/75572bc4/attachment.html>


More information about the cairo-bugs mailing list