mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 13:05:47 +00:00
* fix(display): copy the game and the window above it in one GPU submit When a game's frames go on the layer-copy path and a window sits above the game, each scene copied the game frame and then the window above it with two separate submits and two CPU waits. Each wait queued behind the game's own GPU work, so a GPU-bound game lost on-screen frames to the second wait. Record both copies in one command buffer, merge their release fences, and wait once per scene. The zero-copy path and the single-layer copy path are unchanged. * Check overlay eligibility against the frame's own game geometry and keep both release waits when a fence merge fails