making window managers faster

Jouni Tulkki <[email protected]> Sat, 26 Oct 2002 16:27:05 +0300 (EET DST)
Newsgroups gmane.comp.xfree86.render
Message-ID <[email protected]>
I have seen people complaining about slow window redraw when moving/resizing
windows. I had noticed this problem myself and have found one way to reduce it.
X server sends a lot of mouse events when moving the mouse. I haven't calculated
how much but it could be something like 100 - 200 or more per second. This is
way too much for window moving. 

The solution is to add a time check to the window manager that makes sure that
windows are not moved more often then (for example) 50 times per second. Same
applies to window resize, but because window resize is more expensive the
maximum refresh rate should be lower, maybe about 25 1/s.

Jouni