Announcements

Shape the future of your TeamViewer product with our Product Team. Click here to join!

Posted by kode54
Digon

macOS Feature Suggestion for the Future: Metal screen capture

Since it was mentioned regarding macOS 10.13 High Sierra, you may wish to look through the new developer documentation for the new Metal screen capture API. It allows for capturing both image data and command queues. It may prove to be useful for countering the serious frame rate drops I currently experience when TeamViewer is capturing either of my screens, one of which is the 5k iMac's main 5120x2880 screen. Something to optionally support for newer systems, maybe?

2 Replies
Posted by kode54
Digon

Re: macOS Feature Suggestion for the Future: Metal screen capture

Okay, so Metal capture is just for debugging purposes. Maybe AVCaptureScreenInput is what you're already using? Too bad it has such a high GPU utilization impact.

Highlighted
Posted by kode54
Digon

Re: macOS Feature Suggestion for the Future: Metal screen capture

It would appear that TeamViewer uses the CGWindow API (CGWindowListCreateImage) for desktop capture on macOS, which was definitely not designed for high speed capture. There is a better API, AVCaptureScreenInput, which has been around since macOS 10.7.

Or you could use CGDisplayStream. 10.8+.