Re: Q: How to optimize configure events?




"Daniel J. Kressin" <kressd11@sol.acs.uwosh.edu> writes:

> On Mon, 10 Aug 1998, Tim Janik wrote:
> 
> >On Mon, 10 Aug 1998, Daniel J. Kressin wrote:
> >> My question is: Is there a way I can optimize the configure events so that
> >> only the "final" one causes the the semi-complex image to be created?
> >
> >i guess, adding a one shot idle handler for the recreation would
> >reduce the flickering a lot. something like:
> >
> [code snipped]
> 
> Thanks.  It's better than before, but still not as responsive as it maybe
> could be.  If any one else has other suggestions, I'd love to hear them.

Turn off OpaqueResize? 

You could try using a short timeout - i.e. wait until there is
say a 100ms pause between configure events before redrawing your
screen.

Regards,
                                        Owen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]