Closed MikiraSora closed 3 years ago
In fact I notice glReadPixels spend most time on copying buffer into bitmap though CPU. I think it could use WGL_NV_DX_interop and share with DirectX surface.
The changes look great. I just want to test them before I approve and I probably won't have time until the weekend. You're right that the current CPU copying method isn't efficient and that interop function looks like it could really improve things. I didn't know it existed. I'm not actively developing this library any more, but you're welcome to integrate and PR it if you want.
OK I had implemented this opengl extension and release a example. https://github.com/MikiraSora/OpenTkControl/releases/tag/v0.1.0
I will take a test and format code before raising new PR.
But this is temporary solution because the team of OpenTK dev also want to improve their control library though this extension and WGL_NV_DX_interop2.
Fix issue : https://github.com/jayhf/OpenTkControl/issues/6 and another bug when control want to generate a opengl buffer in design mode:
![](https://puu.sh/En5NI/81ab788ec7.png)