nanogui: limit the number of GrMoveWindow() calls!
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]