feat(video): NVTEGRA direct rendering and adaptive presentation - #30
Merged
Merged
Conversation
This was referenced Sep 10, 2026
Closed
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.
Switch 视频原先需要硬件帧回读和纹理上传;本变更增加 deko 后端直接导入 NVTEGRA 帧,并统一管理 mailbox、当前帧和在途 GPU 批次的资源生命周期。UI 使用同一图形后端,停止与退出按使用者结束顺序回收。
在线调度根据真实帧发布时间和提交节奏调整重复绘制的时机。有新帧立即尝试提交,无新帧才有界等待,不新增视频 FIFO。额外采样由
NSL_DIAGNOSTICS编译隔离,删除旧升频实验和废弃反馈接口;release 保留自适应控制。验证:51 项桌面回归、release 相关测试、Switch 诊断及 release 构建、诊断排除检查均通过。诊断开关前后及清理前后的调度决策摘要一致。实际串流约 164 秒 P/A 98.32%,稳定约 60 fps 输入区间不同帧提交 59.14–59.45 fps;用户认可效果。CPU 侧解码准入至 present 返回平均 11.12 ms,不是屏幕端到端延迟。清理后未再次上机。
Switch 默认仍为 SDL;正式默认切换及尚未逐项验证的平台边界由 #29 跟踪。没有发布 Release。
Closes #8
Related to #10