Caputre OpenGL window in X11 with fast frame rate - maybe?

I have an 800x600 OpenGL application running on my Linux machine (X11). The contents of this application (rendered image) must be exported via the network to another computer. First of all, I want to know whether it is possible to take snapshots of the application window with a frequency of about 30 Hz, save them in jpeg and export them to another machine via HTTP or whatever (like IP cameras do). Is it possible to quickly read the memory of graphic cards (Radeon HD 5800) so that I can get a frame rate of about 30 frames per second?

+4
source share
2 answers

If you are willing to endure some delayed Pixel Buffer Objects (OBOs) you should get some decent reading back throughput.

libjpeg-turbo looks like a good solution for high-speed JPEG encoding.

If you do not have a source for the application that you are trying to control, then LD_PRELOAD hacks in combination with the above should work.

+2
source

You can look at VirtualGL , which does exactly what you aim for.

+1
source

All Articles