Why did moving the mouse cursor cause Windows 95 to run more quickly?
21–30 of 201 posts
Re: Why did moving the mouse cursor cause Windows 95 to run more quickly?
#22In 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.
Re: Why did moving the mouse cursor cause Windows 95 to run more quickly?
#23Re: Why did moving the mouse cursor cause Windows 95 to run more quickly?
#24Making 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?
#25Making 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.
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?
#26Re: Why did moving the mouse cursor cause Windows 95 to run more quickly?
#27Re: Why did moving the mouse cursor cause Windows 95 to run more quickly?
#28 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?
#29This 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?
This is a problem for NTP developers - finding real serial ports on modern hardware