我正在尝试创建一个代码,该代码会采用游戏的一系列屏幕截图,使用Open-CV进行编辑,并将其实时显示在窗口中。我正在使用Windows操作系统。为了拍摄屏幕截图,我尝试了几乎所有在
我发现,对于游戏,obs studio使用了一种称为 D3D共享纹理,以直接在GPU上捕获游戏的帧。。
i 搜索 obs github代码中的共享纹理,但我发现结果令人困惑。
在搜索引擎上搜索不会给出相关的结果。
有人可以解释这种共享纹理方法是什么,如何在代码中实现它?
I am trying to create a code that takes series of screenshot of a game, use Open-CV to edit it, and display it in a window, all in real-time. I am using windows operating system. For taking screenshots I have tried almost all the methods answered in this question. None of them gives FPS of more than 30, but do affect the performance of the game.
I found out that for games OBS Studio uses a different method called D3d shared texture to capture frames from the game directly on the GPU..
I searched for shared texture in OBS github code but I find the results confusing.
Searching on search engine does not give relevant results.
Can someone explain what is this shared texture method and how do I implement it in my code?
发布评论