by joshspankit · 2y ago · 0 comments
OSX had the opportunity to follow that path before settling on the “render windows, capture the screen, compress the image, send it over the network to be decompressed” VNC-style remote access that’s bog-standard today, and if they had Vision Pro would be set up to be an absolute mind-blowing macOS experience.
It falls apart as UIs got richer, browsers in particular: they're entirely composited in-app and not via GDI, because GDI isn't an expressive enough interface. So you end up shipping a lot of bitmaps, and to optimize you need to compress them. You might as well compress the whole screen then.
https://www.anandtech.com/show/3972/nvidia-gtc-2010-wrapup/3
1: e.g. https://learn.microsoft.com/en-us/openspecs/windows_protocol...
This has been done many times before (see e.g. X Windows) and has known downsides. Off the top of my head:
- You need the same fonts installed on both sides for native font rendering to work
- Applications that don't use native drawing functions will tend to be very chatty, making the total amount of data larger than VNC/rdesktop/&c. style "send compressed pictures"
- Detaching and re-attaching to an application is hard to get right, so it's either disallowed or buggy.
I guess one downfall is that that your pipe has to be lossless, and there's no way to recover from a broken pipe (unless you keep a shadow copy of the window state, and have a protocol for resynchronizing from that, and a way to ensure you don't get out of sync.)
1. The receiving side has to have at least as much rendering power as the original side, since it will be the one actually having to render things on screen. This is always going to be the opposite case with any kind of glasses, where you'll always want to put as little compute as possible for weight and warmth reasons.
2. Each application actually has to send draw instructions instead of displaying photos or directly taking on control of the graphics hardware themselves. No or very few modern applications work like this for any significant part of their UI.
Applications which bypass the native APIs to render their window contents, in particular video players or games, get a compressed streamed video which has very decent performance. The video quality seems to be dynamic as well, so if there's a scene with very few changes you can see the quality progressively improve.
All of this is done per window, so a small VLC window playing a video in a corner gets the video treatment, while everything else still works like native UI.
How did you know it sends windows hooks? Was it some sort of binary serialization?