News for hackers. Stuff that matters.
Re:Apple testing new external display with A13 chip by yazaddaruvala on Friday July 23, 2021 @01:53PM (#27933655)
I don't know, but my guess:

Apple Exec: "Build an external display for the iPhone and/or iWatch."

Apple Engineers: "Ok, but we will need a GPU built into the display or it'll look like shit. It'll also need a lot of RAM/SSD to store textures, etc. Additionally, a high bandwidth, low latency wireless connection between the iDevice and the display (e.g. UWB)."

Previously to support an enormous external display the iDevice would need to have a large GPU, battery, etc that are mostly unused except for when the display is "active". With a GPU in the display, the iDevice just needs good enough data transfer rate to get textures and stuff over to the display, meanwhile events like mouse movement, or open an app, or switch apps can be very low latency instructions sent from the iDevice to the display and vice-versa.

Re:Apple testing new external display with A13 chip by floatingatoll on Friday July 23, 2021 @02:37PM (#27934150)
macOS uses a PDF-like canvas as the core display engine^, upon which everything writes object layers that have refresh loops independent from the main canvas 'flatten layers into the display' loop. This is all inside WindowServer, and is why <Shift-Command-4> <Spacebar> lets you select an entire window including the shadowed border, without picking up anything from above or beneath it, because Spacebar activates object selection mode.

And we know that Apple has figured out secure pairing of T2 chips for external accessories (the touchID keyboard), so they can run secure-trusted components outside of the main hardware.

So they could in theory run a WindowServer process on the display's internal Cortex chip, paired via T2 to provide verifiable security, hosting the WindowServer canvas for that display and lets the host device offload the 'flatten layers to display' problem, handle the EDR mapping, and so on. That would be a boon to laptops and also to thermally-constrained desktops, and here's why:

On my Mac, WindowServer is the highest user of CPU time in total, exceeding kernel_task, coreaudiod, everything except Zoom (which does non-accelerated H.264 encoding/decoding on x64). So if I were to plug in a second 5K display alongside my built-in, my WindowServer CPU usage would double. Fortunately, I can afford that — but maybe a laptop cannot. Offloading that WindowServer burden for managing traffic to/from the LCD, and for dealing with layer flattening and security property management (you can't screenshot certain OS dialogs with a specific security flag set!), would be a tremendous win not only for battery life of the host, but also a theoretical performance win for latency, as now macOS would only need to shuttle specific layer changes over the wire.

Of course, it could still act as a dumb display for any host that isn't ready to negotiate a T2-protected WindowServer connection, but my idea above would definitely go a long way to explaining why Apple dropped support for x64-style eGPU while still investigating hardware-accelerated monitors.

^ it used to be implemented as PDF internally, not sure if it still is or not

^^ you used to be able to kernel panic macOS by making a window so tall that, when screenshot using the Spacebar layer selection method, an out-of-bounds write would occur from within WindowServer

Re:Apple testing new external display with A13 chip by Traubenfuchs on Friday July 23, 2021 @05:04PM (#27935614)
I have rarely ever learned this much from a single comment here.
Re:Apple testing new external display with A13 chip by floatingatoll on Saturday July 24, 2021 @02:23AM (#27938901)
I do my best, I just hope I got everything right enough. I should add: EDR is https://developer.apple.com/wwdc21/10161
Re:Apple testing new external display with A13 chip by baxuz on Saturday July 24, 2021 @07:02AM (#27939842)
This comment here is what I come to HN for.

I think that OS X was the first OS that did hardware compositing. How come that WindowServer consumes so much CPU instead of GPU?

Re:Apple testing new external display with A13 chip by floatingatoll on Saturday July 24, 2021 @02:56PM (#27943534)
I didn't closely check for "is it CPU+GPU or CPU only" when I looked at Activity Monitor yesterday. I could, but I suspect that isn't a stable answer year-over-year yet.
Re:Apple testing new external display with A13 chip by new_realist on Saturday July 24, 2021 @12:42PM (#27942367)
The CPU isn't compositing, it's rendering 2D objects, I think—text, vector graphics, etc.
Re:Apple testing new external display with A13 chip by cromka on Saturday July 24, 2021 @04:26AM (#27939255)
> as now macOS would only need to shuttle specific layer changes over the wire.

All this makes me think they're about to introduce wireless connection to display, akin to what is now possible with Sidekick and an iPad, especially given the recent improvements in Continuity.

Re:Apple testing new external display with A13 chip by floatingatoll on Saturday July 24, 2021 @03:19PM (#27943693)
Oh, that's a dreamy idea. I sure hope so.
Re:Apple testing new external display with A13 chip by ttul on Friday July 23, 2021 @02:38PM (#27934169)
.. or iPad. Many professional creative types use iPads in their professional work. Being able to hook up to a high end display wirelessly would be a great help to this segment of professional customer.
Re:Apple testing new external display with A13 chip by tinus_hn on Friday July 23, 2021 @03:02PM (#27934390)
Perhaps ironically the original Apple Watch wasn’t much more than an external display for the iPhone.