Re: [gtk-list] Re: Q: automatic function on program startup
- From: INTERLOG ACCOUNT <starsend interlog com>
 
- To: gtk-list redhat com
 
- Cc: starsend interlog com
 
- Subject: Re: [gtk-list] Re: Q: automatic function on program startup
 
- Date: Thu, 25 Dec 1997 12:41:26 -0500 (EST)
 
> > [...]
> 
> How could I take calculations out of the idle function. I need as much
> CPU as possible, and that doesn't seem a very good place to put them.
> Moreover, I should have to make a mess to do calculations step by step
> on each call.
Invert the problem, and do the windowing update you need in the 
my_special_calc function. 
psuedo-code inside my_special_calc
if (10000 iterations of calculations)
	call window update system
	set iteration counter to zero
else
	add 1 to iteration counter
						B.T
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]