nanogui: limit the number of GrMoveWindow() calls!


Previous by date: 6 Aug 2002 03:01:56 -0000 Re: Suggestion for adding nanowm into graphic server!, wang
Next by date: 6 Aug 2002 03:01:56 -0000 How to display a jpeg picture in the flnx window, xgzhang.dtvia-usoft.com
Previous in thread:
Next in thread: 6 Aug 2002 03:01:56 -0000 Re: limit the number of GrMoveWindow() calls!, Alex Holden

Subject: limit the number of GrMoveWindow() calls!
From: "wang" ####@####.####
Date: 6 Aug 2002 03:01:56 -0000
Message-Id:

Alex suggests:
>* Make the WM do the window move calls at a fixed rate asynchronously to
>the incoming mouse movement events in order to limit the number of
>GrMoveWindow() calls per second.
 				
  I have try it out like this : 
     in actions.c I add a static variable move_count,
and before Grmovewindow() in fouction container_mousemoved(),
I add this:
    .......
      move_count++;
       if(move_count >10000)
       	 move_count=0;
       if(move_count%2)
    ...........
so the number of GrMoveWindow() calls is cut 
down to a half.

  But unfortunately I did see any abvious 
speed increase.
 
  Any comments are welcome!


        wang
####@####.####
          2002-08-06

[Content type application/octet-stream not shown. Download]

Previous by date: 6 Aug 2002 03:01:56 -0000 Re: Suggestion for adding nanowm into graphic server!, wang
Next by date: 6 Aug 2002 03:01:56 -0000 How to display a jpeg picture in the flnx window, xgzhang.dtvia-usoft.com
Previous in thread:
Next in thread: 6 Aug 2002 03:01:56 -0000 Re: limit the number of GrMoveWindow() calls!, Alex Holden


Powered by ezmlm-browse 0.20.