Repository navigation
Conversation
…d Linux Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
oneo-me
force-pushed
the
agiox/hw-decode-gpu-direct
branch
from
November 24, 2026 18:30
4a70661 to
ee47c7c
Compare
…and Linux Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #39.
On Windows (D3D11VA) and Linux (VAAPI),
player.Viewdraws hardware-decoded pictures through NSGo'sgpuview, imported withDevice.ImportTexture(nsgo-dev/nsgo#2296), instead of copying them to memory, converting them to RGBA and uploading them throughcore.Image's pixel buffers.vaExportSurfaceHandle, as FFmpeg does when built with libdrm, which ours is not.gpuview sits under the image view, so pictures in memory (software decoding, stepping backward) still show, and the app's views stay above both. macOS and iOS keep the pixel-buffer path.ImportTexture, in the core and the app.Measured on the devices (docs/performance.md): a 4K60 clip uses 9–16% of a core instead of 97–115% on the Windows PC, and 5–6% instead of 87–134% on Omarchy, with 130–155 MiB less private memory on Windows and 0.25–2.4 GiB less resident memory on Linux. Overlays (a child of the view and a view after it), 10-bit HEVC, snapshots, steps both ways and software decoding were checked on both.
playerandpipelinetests pass on both machines.TestHLSLiveWindowfails on macOS on main as well; it is not touched here.🤖 Generated with Claude Code