Earlier quoted context omitted.
Sure, on the wire USB is a polling protocol. But the polling is done by the host controller hardware, which will raise an interrupt just like PS/2 whenever the device responds to the polling as having data available.
The polling by the host controller is still limited to happening once every bInterval period as specified by the device, which for mouse/keyboard will be at least a few milliseconds, v.s. the old school PS2 style mice which would send hardware interrupts straight to the processor.
24-core CPU and I can’t move my mouse (2017)
81–90 of 255 posts
Re: 24-core CPU and I can’t move my mouse (2017)
#82This is one of the primary resaons I ditched Windows for Macos. The multitasking on Windows is ridiculously bad. Also, applications that freeze and can't be killed/restarted are simply part of life on Windows. Add to all that, Window slows down over time - again, the periodic reformat and rebuild is part of life on Windows. After I switched to Mac I didn't need to rebuild the operating system essentially ever. Also,…
Did they? My MacBook is much worse at multitasking. In fact the OS I've found to be best at multitasking is Debian/Ubuntu.
Re: 24-core CPU and I can’t move my mouse (2017)
#83Earlier quoted context omitted.
For a modern system like Wayland or WDM, the display compositor gets rectangles of pixels from the applications, copies those into a big rectangle it sends to the rasterizer. Just before it does that, it draws on a mouse cursor. It also has to communicate with the applications about what image to draw so you have to deal with multiple threads no matter what. (Unless you go back to the late 8-bit era where the cursor…
I believe the mouse cursor is still often a hardware sprite today.
Re: 24-core CPU and I can’t move my mouse (2017)
#84Earlier quoted context omitted.
This is fairly basic functionality. Windows and wlroots-based compositors have it at least. I'm reasonably certain that other major compositors have it too.
Did you check? I tell my QA people all the time: If you come to me with "I think" or "I believe", it sounds like you've got some reading to do.
If you want to know my epistemic status: I know about windows based on observable surface behavior and bugs related to accelerated cursors, but I haven't looked at the source. I know about wlroots because I saw the pull requests related to that and a flag to disable it in sway. The last statement regarding other platforms was an educated guess based on gfx card history: accelerated overlays are an ancient feature present in a lot of hardware, not some newfangled niche feature.
And I'm not one of your QA people.
Re: 24-core CPU and I can’t move my mouse (2017)
#85Earlier quoted context omitted.
Can I ask what model and how much RAM?
2019 13" MBP, 16GB. Pretty much anything I do will spin up the fan now. Compiling an app uses so much battery that I get less than an hour of battery life. I've resorted to remote development only, a la Chromebook. My previous laptop was a similar Lenovo X1 Carbon with Debian and wow do I miss it, but I don't have too much of a choice since I do mobile app development :(
I swore that would be the last Apple computer I ever bought, but then they released the M1s… and they are very good.
Would recommend getting an M1 if at all possible. There’s still time to ask Santa for one.
Re: 24-core CPU and I can’t move my mouse (2017)
#86Hyperthreads aren't real CPU cores, claiming that your 48 hyperthreads were "only" 50% utilized means all the real cores under the hood are fully utilized.
> Hyperthreads aren't real CPU cores I can't think of a good principled reason to say SMT cores aren't "real". I'm assuming the answer isn't "because they share some computing stuff". What I think you'd call "real" cores also share resources like L2/L3 caches, sometimes DMA engines, etc. And IIRC, each Intel SMT (hyper-thread) unit has its on instruction pointer and (non-SIMD?) register set.
Re: 24-core CPU and I can’t move my mouse (2017)
#87Earlier quoted context omitted.
I have a long break over the holiday and am thinking of putting a software project out. Do you think I should consider making it a priority to code in a fairly low-level programming language (e.g. Rust) without overhead, and count cycles so that most tasks are done within a single screen refresh? I can't make the rest of users' systems more responsive but I could make my own software as fast and efficient as possible…
Cycle-counting is useless on modern workstations, since different processor are used in each. I don't see how the choice of language is significant either, as long as it meets your goals for responsiveness. Goal could be instead to limit latency where possible (measuring time from click to completed action is easy with a framework), or communicate to the user when an action will take a noticable amount of time.
Sometimes not though, like startup times, but there is not so many use cases that this counts, like 1password starts slower with each release.
Re: 24-core CPU and I can’t move my mouse (2017)
#88This is one of the primary resaons I ditched Windows for Macos. The multitasking on Windows is ridiculously bad. Also, applications that freeze and can't be killed/restarted are simply part of life on Windows. Add to all that, Window slows down over time - again, the periodic reformat and rebuild is part of life on Windows. After I switched to Mac I didn't need to rebuild the operating system essentially ever. Also,…
> Add to all that, Window slows down over time - again, the periodic reformat and rebuild is part of life on Windows. My windows install is from 201*, it was an upgrade from win7, and switched from an i7 to a ryzen. I do clean out the registry/startup/task scheduler on occasion.
The early 3rd century was the best era for Microsoft with Windows Severan.
Re: 24-core CPU and I can’t move my mouse (2017)
#89This is one of the primary resaons I ditched Windows for Macos. The multitasking on Windows is ridiculously bad. Also, applications that freeze and can't be killed/restarted are simply part of life on Windows. Add to all that, Window slows down over time - again, the periodic reformat and rebuild is part of life on Windows. After I switched to Mac I didn't need to rebuild the operating system essentially ever. Also,…
Did they? My MacBook is much worse at multitasking. In fact the OS I've found to be best at multitasking is Debian/Ubuntu.
[EDIT] And when I do still run into trouble, it's almost always Electron chat apps. Slack, Teams, and Discord. All terrible at being respectful of system resources. Closing the program and restarting it usually temporarily fixes the problem, but that shouldn't be necessary.
Re: 24-core CPU and I can’t move my mouse (2017)
#90Earlier quoted context omitted.
For me the UI hangs whenever Thunderbird downloads new messages. It seems as if they are doing network I/O on the UI thread - which can't be true...
I learned not to touch the keyboard when TB was downloading new messages and running filters. Otherwise it would randomly corrupt the message file, and I'd lose it all. Yes, I filed a bug report with TB. No, they never found the problem.
… but it has a habit of corrupting profile files on shutdown.