Tracking Mouse and Speed

Is there any speed hits with tracking the mouse when in windowed mode? Why
I ask is if I move my mouse cursor outside the window, my FPS jumps to
around 50fps, but if I move it back in the window, it drops down below 30fps
and the only thing I can figure is it has to be something with the mouse.

I’ve tried the same program on my Alpha machine running NT4, the only
difference is it uses WinDIB since its NT. It runs upwards fo about 57fps,
whereas I’m seeing the problem on WinXP (I also saw it on Win2K when I had
it running). Fullscreen mode runs fine, FWIW.

Anyone got any pointers as to what might be going on?

the only mouse related things I’m doing are handling these events:

case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP:

and I’m calling this function

button = SDL_GetMouseState(&x, &y);

My system is:

Dual 450Mhz Celerons
WinXP
TNT2/32MB using latest NVIDIA drivers
896MB RAM

TIA,

mike