Mouse Refresh rate

i’m working on a game. it currently runs at ~60 fps (the vert. refresh rate
of my monitor). every frame, i poll the mouse to get its location and stuff.
however, when i move the mouse, it looks choppy, like i am running at about
20 fps. it IS getting polled every frame. could there be some sort of delay
or something in the part where SDL internally polles the mouse?

i am wondering…

the MadProgrammer_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

i’m working on a game. it currently runs at ~60 fps (the vert. refresh rate
of my monitor). every frame, i poll the mouse to get its location and stuff.
however, when i move the mouse, it looks choppy, like i am running at about
20 fps. it IS getting polled every frame. could there be some sort of delay
or something in the part where SDL internally polles the mouse?

i am wondering…

the MadProgrammer_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx

On Linux I can’t get better than 30 mouse events per sec.>From: “Matt Monson”

Reply-To: sdl at libsdl.org
To: sdl at libsdl.org
Subject: [SDL] Mouse Refresh rate
Date: Tue, 19 Mar 2002 12:51:38 +0000

i’m working on a game. it currently runs at ~60 fps (the vert. refresh rate
of my monitor). every frame, i poll the mouse to get its location and
stuff.
however, when i move the mouse, it looks choppy, like i am running at about
20 fps. it IS getting polled every frame. could there be some sort of delay
or something in the part where SDL internally polles the mouse?

i am wondering…

the MadProgrammer


MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

Do you have a serial mouse or an USB mouse?

When I got my Celeron 333 3 years ago, I thought it was something wrong when
quake was as smooth as before when I was turning with the mouse, then I turned
using the keys and it was smooth as hell. After I bought a USB mouse my problems
went away.

Florian> ----- Original Message -----

From: madprog@hotmail.com (Matt Monson)
To:
Sent: Tuesday, March 19, 2002 1:51 PM
Subject: [SDL] Mouse Refresh rate

i’m working on a game. it currently runs at ~60 fps (the vert. refresh rate
of my monitor). every frame, i poll the mouse to get its location and stuff.
however, when i move the mouse, it looks choppy, like i am running at about
20 fps. it IS getting polled every frame. could there be some sort of delay
or something in the part where SDL internally polles the mouse?

i am wondering…

the MadProgrammer


MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Decent PS/2 mice should work at least as well as USB. For example, most
Logitech mice can be programmed to generate up to 100 or 150 coordinates
per second. (Configurable if you install the real drivers, of from within
XF86Config, if you’re on something using XFree86, like most Linux
systems.)

Win95/85/ME usually sets a much lower rate than WinNT/2K/XP and
XFree86, but all of them allow you to configure this with the right
driver, provided the mouse actually supports it.

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |-------------------------------------> http://olofson.net -'On Tuesday 19 March 2002 15:03, Florian Schulze wrote:

Do you have a serial mouse or an USB mouse?

All my Logitech MouseMan Wheel mice give 100 events/s or so… However,
this seems to be the default setting for them - I never need to tweak
anything. (Except on Win95/98, which otherwive criples them by setting
the rate to 15-20 Hz or so.)

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |-------------------------------------> http://olofson.net -'On Tuesday 19 March 2002 16:14, Pedro Proen?a wrote:

On Linux I can’t get better than 30 mouse events per sec.

i am using win98se with a m$ optical scroll mouse. i have great refresh
rates for the mouse when just in windows, and it works fine for c-strike. i
looked around in the intellipoint software, and didn’t see any “polling
rate” or the like. any clues as to where it might be?_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.