[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Refreshing windows as often as possible, but not too often
- From: Havoc Pennington <hp redhat com>
- To: GNOME Apps <gtk-app-devel-list redhat com>
- Subject: Re: Refreshing windows as often as possible, but not too often
- Date: Sat, 9 Oct 1999 19:12:46 -0400 (EDT)
On Sat, 9 Oct 1999, Ben Laurie wrote:
> gtk_idle_add(). The snag is that it _really_ interferes with user
> interaction. The mouse is like treacle, it takes ages to shut down,
> window focus doesn't work, and so on.
>
> Using nice(5) or so reduces the problem, but it comes back after a
> while. Inserting a 1/10 second nap into each iteration helps, too. But
> that's crap. So how do I do it _right_??
>
Use a timeout - an idle runs as often as it can given your machine's CPU
and disk limitations. A timeout runs at a given interval. Sounds like you
don't want to crush your machine with continuous activity, so an idle is
wrong.:-)
Havoc
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]