mousestate poll rate

Feb 8, 2013 at 7:55pm

mousestate poll rate

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 8×64)

#66390
Feb 9, 2013 at 1:54am

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

#238981
Feb 9, 2013 at 2:46am

@ 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.

http://www.cybergamer.org/forums/thread/260663/Mouse-Optimization-Guide:-Acceleration-Fix-and-Polling-Rate/

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

HTH

#238982
Feb 9, 2013 at 7:32am

Hi,

Have you tried to change the “Scheduler Preferences” of MaxMSP (“Event Interval” for instance) ?

#238983
Feb 9, 2013 at 12:52pm

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.

#238984
Feb 10, 2013 at 3:43pm

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)

#238985
Feb 10, 2013 at 4:32pm

Hi,

AFAIK : [mousestate] notifications rate is limited by the “Event Interval” rate.

MaxMSP 5.1.9 > Preferences… > Scheduler > Event Interval

#238986
Feb 10, 2013 at 6:51pm

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

#238987
Feb 10, 2013 at 9:24pm

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 ;).

#238988
Feb 11, 2013 at 7:41am

Hi,

Timer thread can not be scheduled less than 1ms so as Main thread ; don’t know how it is implement under the hood (qelem ?) but contention quickly limit the rate at the sum of both. Anyway i’m not sure at all you get new values each time you bang [mousestate] and that it does not just repeat cached values instead.

My 2 cent.

#238989

You must be logged in to reply to this topic.