mousestate poll rate

nSa's icon

Help file says polling is every 50ms... i have it running more like every 10ms. This seems to be a maximum though, even if I use metro @ 1ms instead of the poll message. Any way to get this faster? Scheduler setting? Mxj?

(windows 8x64)

Roman Thilenius's icon

that is simply how fast any mouse is, since atari and amiga times.

maybe you want to interpolate the data (using [line]) to get more values?

-110

Johnny Christ's icon

@ Roman:

I don't think that's correct. You can adjust the polling rate, in Windows at any rate . . . up to 1kHz (USB maximum polling rate).

The following link discusses Vista/Win 7 but probably applies to Win 8 also . . . shouldn't be too hard to track down W8-specific guides in any case.

As to how to get Max playing ball - no clue.

HTH

Peter Castine's icon

The long and the short of it is that your hardware will set a hard limit on mouse polling speed, and the only way to go faster than that speed is to dump your hardware (certainly your mouse, but possibly the whole computer system) and replace it with another.

For many years (going back beyond the introduction of USB), mice would update data at around 60Hz (ie, about ever 16ms). Some modern mice may be faster than that.

But you have to realize that nothing you do with the software can break the speed limit set by your hardware.

nSa's icon

When I send a metro through mousestate @>500hz I only get bangs out @ 500hz...why would that be? It seems to be clipped there (and my mouse is polling 1000hz in other applications)

nSa's icon

True, but I cant get better than 2ms even if I set the event interval to 1ms.

Johnny Christ's icon

Have you tested that your mouse and related driver aren't the limiting factor, presuming you have the USB polling rate set to 1kHz?

I presume so, but ask anyway ;).