Re: How to detect display speed in custom widget?
- From: Federico Mena Quintero <federico ximian com>
- To: Daniel Yek <dyek real com>
- Cc: gtk-devel-list gnome org
- Subject: Re: How to detect display speed in custom widget?
- Date: Fri, 28 Sep 2007 16:00:51 -0500
On Thu, 2007-09-06 at 20:47 -0700, Daniel Yek wrote:
> I'm wondering if anybody is experienced in writing smart widget that
> would react differently depending on whether the current display is
> local/fast for graphics animation or remote/slow where all animation
> should be kept to the minimum?
>
> What techniques are suitable for drawing speed detection?
The cheapest hack is probably to see if the X server supports the MITSHM
extension. If it doesn't, odds are you are on a remote display.
[This assumption breaks under VNC, but I guess that's pretty hard to
detect anyway.]
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]