Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement][Windows] 在多GPU平台使用闲置GPU处理超分滤镜 #738

Open
Predidit opened this issue Feb 18, 2025 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@Predidit
Copy link
Owner

主流的 windows 平台上的集成显卡不足以同时运行超分辨率和弹幕,会出现卡顿

弹幕目前已经没有优化空间,我们考虑使用闲置GPU执行视频超分,这将完全解决这一问题

我们使用 mpv 的 Render API 进行渲染并嵌入到 Kazumi,理论上我们只需要传入正确的 mpv 参数指定其使用独立显卡运行即可,不需要考虑渲染上下文等任何细节问题

根据 mpv 文档 https://mpv.io/manual/master/ 我们可能需要 d3d11-adapter 参数,但实际使用没有效果

我们需要调查这一问题

@Predidit Predidit added enhancement New feature or request help wanted Extra attention is needed labels Feb 18, 2025
@Predidit Predidit pinned this issue Feb 18, 2025
@Predidit Predidit unpinned this issue Feb 18, 2025
@Predidit
Copy link
Owner Author

我们暂时无法推进这一问题

在 windows 平台上,我们需要 d3d11 作为 GPU 渲染上下文才能通过 d3d11-adapter 指定要使用的 GPU

但是我们目前嵌入 mpv 的方式为 mpv 的 renderAPI ,渲染到外部纹理进而嵌入应用程序

这种情况下我们只能使用 openGL 作为 GPU 渲染上下文

我们不能指望 renderAPI 支持渲染到 d3d11 外部纹理,mpv 没有任何相关计划,这项工作非常复杂且没有明显好处

我们可能可以指望 flutter 实现 windows PlatformView ,这样我们就不再依赖 renderAPI 而直接嵌入

flutter 有相关计划但不知道什么时候可以完成 ( flutter/flutter#108486 ) ,此外我们要在这之后在 media-kit 中做相当多的更改,我不知道这是否超出了我们的能力范围

@Predidit Predidit removed the help wanted Extra attention is needed label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant