I’m applying GDI function “GetBitmapBits” to record win 7 monitor screen,
in order to display whole monitor buffer inside my ofApp() in real time, not for saving file on disk.
the performance is poor as 30 FPS@1920*1080.
Here are some testing topics I tried but failed,
Anyone have a better way or point view about this issue?
ofFBO (no clues )
GPU front buffer (guess)
After two days of work, I’ve found new approach to duplicate screen on windows.
for win 7, mirror driver could be fastest method;(need to test)
MicroSoft Mirror Drivers
for win 8.1, DXGI is so brilliant with almost no delay feeling(tested)
Desktop Duplication API
More discussions are welcome.
I’d be interested to know if you got desktop duplication working with OF. I spent some time on it a while back but got stuck. See
I’m working on implementing the windows DesktopDuplication API for screen capture on windows (8+), which should be much faster than using the older GDI method, a quick test with the example project appears to have virtually 0 overhead.
It requires a having an Direct3D device and a device context. I’ve set these up in separate thread. Now I need to access to the DirectX texture in the oF opengl thread. For this I’m …