nanogui: limit the number of GrMoveWindow() calls!


Previous by date: 6 Aug 2002 14:55:49 -0000 A little change on raising window, wang
Next by date: 6 Aug 2002 14:55:49 -0000 SMPEG SegFault?, Mike Schumi
Previous in thread: 6 Aug 2002 14:55:49 -0000 Re: limit the number of GrMoveWindow() calls!, Alex Holden
Next in thread: 6 Aug 2002 14:55:49 -0000 Re: limit the number of GrMoveWindow() calls!, wang

Subject: Re: [nanogui] limit the number of GrMoveWindow() calls!
From: Jordan Crouse ####@####.####
Date: 6 Aug 2002 14:55:49 -0000
Message-Id: <1028644674.25492.1444.camel@cosmic>

On Tue, 2002-08-06 at 05:39, Alex Holden wrote:
> wang wrote:
> >   Yes, alex when I use the new code and drag nxterm ,it have a
> > faster speed ,but when you open a viewml window and drag it ,
> > you will find it still very slow .why ? because the radraw of
> 
> viewml must just be slow to redraw the window. The same will happen with
> mwin apps that are slow at redrawing the window.

Most of the more complex toolkit based apps will do this.  Thats why
Greg implemented the current scheme for moving the window.  

> >  But your suggestion take me a good idea, you know every time 
> > when we call Grmovewindow() we should "creat ,copy,copy,destroy,expose",
> > and when we are dragging it will call Grmovewindow() many many times,
> > so why don't we bypass the first "creat,copy "and "destroy",just
> > at first time we call Grmovewindow we do "creat,copy",and keep
> > it in memory till the button be released,so at sequent call we
> > just need to do "copy,expose",this should even faster then the
> > method we  implement in mwin.
> 
> I don't see a clean way to fit that into the Nano-X API, or how to deal
> with the possibility of the window being drawn to whilst it's being dragged.

I agree, its a difficult thing to implement, especially without using
much more memory resources that we should (ie, backing store).

Jordan


 



Previous by date: 6 Aug 2002 14:55:49 -0000 A little change on raising window, wang
Next by date: 6 Aug 2002 14:55:49 -0000 SMPEG SegFault?, Mike Schumi
Previous in thread: 6 Aug 2002 14:55:49 -0000 Re: limit the number of GrMoveWindow() calls!, Alex Holden
Next in thread: 6 Aug 2002 14:55:49 -0000 Re: limit the number of GrMoveWindow() calls!, wang


Powered by ezmlm-browse 0.20.