VOGONS


First post, by DoZator

User metadata
Rank Member
Rank
Member

In many DOS games that I run on Windows, the mouse works noticeably smoother than in pure DOS. This is especially noticeable in first-person shooters. The reason for this phenomenon lies in the fact that in Windows, the mouse uses USB drivers + MouseWare + HIDUSBF, and thanks to this, it operates at a frequency of 500 Hz (the response time is only 2 milliseconds), which far exceeds the screen refresh rate. As a result, all mouse movements look very smooth:

The attachment MOUSRAT2.PNG is no longer available

In turn, in bare DOS, the mouse works through internal BIOS emulation services as a PS/2 device, and the maximum polling rate is only 200 Hz for a USB optical mouse connected to a PS/2 port via an adapter, or only 125 Hz when connected directly to USB.

I noticed that fresh USB 3.0 (xHCI) drivers for DOS were released just recently, but will they help me fully overclock my mouse to 500Hz so that it works as smoothly and responsively in MS-DOS as it does in Windows? I didn’t find anything about this right away in the driver’s description:

https://github.com/ages2001/WINUSB (New USB driver with MS-DOS support).

Has anyone managed to overclock their USB gaming mouse under DOS to 500Hz or even 1000Hz? What DOS tools and drivers do you usually use for overclocking in DOS?

Reply 1 of 1, by pavunoDev

User metadata
Rank Newbie
Rank
Newbie

I'm thinking that if you experienced really bad mouse responsiveness, it would be much much slower than 200 Hz polling. I can remember there was DOS software using the 18.2Hz clock to poll the mouse (BIOS timer IRQ0 / INT 08h, with the user hook INT 1Ch). Obviously this is so bad it wouldn't be workable for most games, which reprogrammed the PIT, but typically at 60 - 120 or so, especially since most PS/2 mice ran at 100 Hz. That’s the mouse’s power-on default, and it’s what most software left it at. In DOS, the driver owns this setting.

I remember distinctly how Amiga mouse felt so much smoother when I switched to DOS/Windows PCs circa 1993. In fact, it would take several generations of hardware until I couldn't notice the mouse lagging in the screen any longer. But this was because of the hardware acceleration Amiga has specifically for the mouse pointer. Hardware drivers would only be standard in Windows NT and later (2000, XP, etc).

For DOS games like Doom or Quake, mouse input is read per frame, so better framerate is a also better input rate, except it needs to sync with the mouse poll rate (typically 100 Hz). Vanilla Doom's framerate is sh1t, so it doesn't make much difference 35fps cap IIRC. Quake's cap was closer to 100Hz (70? or so) I think it would be noticeable if you tweaked the mouse driver to 200Hz (speaking of the era-appropriate PS/2 mice - potentially more with these new USB drivers?). But honestly I doubt the difference would be noticeable if the polling happened at 200Hz or higher, so long as it's stable without hiccups. At 200Hz stable the mouse input should feel perfect or near-perfect.

As much as I love the DOS era, the truth is that FPS games from the time were really primitive, except maybe Quake 1? Or maybe modern community ports of later games. Maybe that's why I didn't even pay attention to mouse responsiveness in DOS FPS games.