diff options
author | Eric Anholt <anholt@freebsd.org> | 2004-06-29 20:37:51 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2004-06-29 20:37:51 +0000 |
commit | d5db59bd79f5d8788b99056bf9d969b5b3ad99e1 (patch) | |
tree | a74fcd737f0c9b8599fc0d6e7171adec076e0b95 /hw/dmx/input/usb-mouse.c | |
parent | ea78d1c6fcd27d28e69cb97faf72b7b719f6f93e (diff) |
Add an offscreen area scoring to improve choosing offscreen areas to kick
out when allocation can't find a free area of the requested size. When
offscreen pixmaps get used, the offscreen area's score is increased by
a constant value. Every certain number of increases, all offscreen area
scores get decreased by a fraction. When choosing a set of areas to
remove for a new allocation, the set of areas with the smallest total
score is chosen for removal. While this is not the smartest system, it
prevents things like always removing the first offscreen area in memory
(likely the most recent) to be kicked out when doing replacing.
Diffstat (limited to 'hw/dmx/input/usb-mouse.c')
0 files changed, 0 insertions, 0 deletions