4 ms·
> It’d sip power Are you sure? I think Classic MacOS effectively always busy-looped (WaitNextEvent would block, but only if the OS could run another event loop
by Someone 3y ago
> It’d sip power
Are you sure? I think Classic MacOS effectively always busy-looped (WaitNextEvent would block, but only if the OS could run another event loop), never sleeping its (single) CPU.
https://developer.apple.com/library/archive/documentation/mac/pdf/MacintoshToolboxEssentials.pdf#page52 https://developer.apple.com/library/archive/documentation/ma...:
“The Event Manager reports a null event when your application requests an event and your application’s event stream does not contain any of the requested event types”
If that’s true, that modern node CPU would not sleep most of the time, but just loop a lot faster.
- wk_end 3y agoWould a 68k on a modern node running at a fraction of its potential max speed burn through very much power? Apple managed to get multiple hours of battery life out of 68k chips on classic MacOS PowerBooks...
- nxobject 3y agoWould it be any different than, say, battery-powered portables like the TRS-80 Model 100?
- eichin 3y agoAs described at the time, the contemporary Sinclair Z88 had a separate bit of management logic that kept the Z80 CPU asleep until there was some interaction, in order to get ludicrous runtimes on 4xAA. (I wouldn't be surprised if the Model 100 did similarly, but there was no point in doing it on machines that plugged into the wall...)
- hedgehog 3y agoYou could do this to an emulated 68k Mac as well, software written after the PowerBooks shipped should all be ok with being held in sleep most of the time. A few things would need hacks like cursor blink (don't do it) and updating displays like clocks (wake every minute?). Interesting.
- DerekL 3y agoNote that that function has a sleep parameter. It doesn't return until an event has arrived or the sleep time has elapsed.
- morsch 3y agoSo the CPU on a PowerBook never went into a low power state? The maximum power draw of a 68020 apparently was 1.75W, so I guess it's possible.
- Someone 3y agoDoes the 68020 even have low power states? I couldn’t find a definitive answer, but did find https://www.manualslib.com/download/1342088/Motorola-Mc68020.html https://www.manualslib.com/download/1342088/Motorola-Mc68020... and https://www.nxp.com/docs/en/data-sheet/MC68020UM.pdf https://www.nxp.com/docs/en/data-sheet/MC68020UM.pdf, which dont’t seem to mention them.