ngscopeclient / scopehal-apps

ngscopeclient and other client applications for libscopehal.
https://www.ngscopeclient.org/
BSD 3-Clause "New" or "Revised" License
549 stars 84 forks source link

Improve Primus/Optimus support #534

Open azonenberg opened 1 year ago

azonenberg commented 1 year ago

When working on a laptop featuring a combined integrated and discrete GPU, it may be beneficial to split the application across both.

Proposed architecture:

azonenberg commented 1 year ago

We still need to look into how PrimusVK manages power. Do we have the ability to power the dGPU on/off on cue? Is data lost / are handles invalidated when we do so?

Also, might it be beneficial to dynamically switch from 100% iGPU to Primus-style iGPU rendering and dGPU compute offload depending on framerate, memory depth, or other metrics? This would improve power efficiency if we are working with smaller datasets where the dGPU is overkill.