Live data from Hacker News

Why did moving the mouse cursor cause Windows 95 to run more quickly?

retrocomputing.stackexchange.com

21–30 of 201 posts

Re: Why did moving the mouse cursor cause Windows 95 to run more quickly?

#21
Making a huge selection with mouse in LibreOffice spreadsheets even today goes faster if you move the mouse while dragging one endpoint of the selection over the spreadsheet borders which causes the sheet to scroll. Likely the very same cause: there's a timer or other repeating tick to scroll content at a reasonable speed but the sheet is also scrolled when input events wake up the same loop.

Re: Why did moving the mouse cursor cause Windows 95 to run more quickly?

#22

In order to show the properly random and non-deterministic behavior (e.g. random BSODs) that Windows users have come to expect, MS Windows needs to continuously gather high-quality entropy from its surrounding environment. That's why it stops when you're not wiggling the mouse; it's just waiting for you to provide the additional entropy it needs.

No, it’s actually a little-known feature that allows Win95 to temporarily upclock the CPU during peak loads, using the power generated by vigorous mouse movements.

Re: Why did moving the mouse cursor cause Windows 95 to run more quickly?

#24
post #21

Making a huge selection with mouse in LibreOffice spreadsheets even today goes faster if you move the mouse while dragging one endpoint of the selection over the spreadsheet borders which causes the sheet to scroll. Likely the very same cause: there's a timer or other repeating tick to scroll content at a reasonable speed but the sheet is also scrolled when input events wake up the same loop.

The same is true in MS Word and even in many web browsers.

Re: Why did moving the mouse cursor cause Windows 95 to run more quickly?

#25
post #21

Making a huge selection with mouse in LibreOffice spreadsheets even today goes faster if you move the mouse while dragging one endpoint of the selection over the spreadsheet borders which causes the sheet to scroll. Likely the very same cause: there's a timer or other repeating tick to scroll content at a reasonable speed but the sheet is also scrolled when input events wake up the same loop.

I remember this with any selection in windows on at least 3.1/95/98/SE.

This happened if you kept the mouse just inside the window and moved it about 10-20px up and down in/out pf the window in the direction of the selection.

It was a way for me to scroll faster than with the wheel or cursors on web pages if you selected some text and then kept the selection on the end of the screen and moved the mouse wildly in the edge of the screen.

As I was younger then, there was probably a better solution to do this but I was not aware of it.

Re: Why did moving the mouse cursor cause Windows 95 to run more quickly?

#26
post #5

Here I was thinking this was some sort of urban myth caused by superstitions in an age with less abundance of easily accessible tech information. Guess I owe my dad an apology now.

Call him and tell him!

That's sweet. It will make his day.

Re: Why did moving the mouse cursor cause Windows 95 to run more quickly?

#28
It's this bit of code:

    while(GetMessage(&msg, NULL, 0, 0) > 0)  
    {
        TranslateMessage(&msg);
        DispatchMessage(&msg);
    }
The mouse isr would cause a loop like this to execute at some point, processing all the messages on the queue. Win95 had preemption, but it ran at 100hz. Moving the mouse caused additional queue processing on top of the time sliced preemption.

Re: Why did moving the mouse cursor cause Windows 95 to run more quickly?

#29
post #20
post #6

This reminds me of using NUM LOCK to see if your CPU was responding to the A20 interrupt.

Isn’t the use of the lock buttons, like, the standard way to test whether the OS/hardware still responds to something or if it’s reboot time?

They’re soft now. It might indicate your usb driver is wedged, not if your CPU is responding to interrupts at all.

This is a problem for NTP developers - finding real serial ports on modern hardware

Re: Why did moving the mouse cursor cause Windows 95 to run more quickly?

#30
post #6

This reminds me of using NUM LOCK to see if your CPU was responding to the A20 interrupt.

Are you telling me that's not the correct way to find out? All these years I've been wrong!

Not at all! If it works, do it!
Post reply on HN