What are alternatives for using the Desktop Duplication API on Hybrid GPU Systems?

David Liebemann 1 Reputation point
2021-01-15T18:09:54.003+00:00

Hi!

I currently have a problem with the Desktop Duplication API when being run against a discrete GPU on a System with both integrated and discrete GPUs. According to https://learn.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/error-when-dda-capable-app-is-against-gpu the only solution is to start the application with the integrated GPU. But the application is developed for VR, so it's required to run on the discrete GPU, if available.

What options do I have? I'd really appreciate it if someone could point me to a good solution, because I seemingly can't find one even after extensive research.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,427 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Arti Kearney 6 Reputation points
    2021-07-08T07:31:19.533+00:00

    You might have luck with the windows.graphics.capture APIs. If you're using Unity, here's a library that uses them - you'll have to switch the child prefab's shader to Unlit/Texture to get it to render in both eyes, but after doing that it works fine for me.

    cc @Aqib Nazir

    1 person found this answer helpful.
    0 comments No comments