From gtk-app-devel Fri May 25 09:23:33 2018 From: =?UTF-8?B?SmnFmcOtIEphbm91xaFlaw==?= Date: Fri, 25 May 2018 09:23:33 +0000 To: gtk-app-devel Subject: The best way to draw a GL texture from a different process Message-Id: X-MARC-Message: https://marc.info/?l=gtk-app-devel&m=152724886729852 Hello, My app consists of the main process, where the GTK+ main loop and widgetry live, and the GPU process, which does OpenGL kung-fu and provides GL texture and dirty/invalidated rectangles as a result. I have little control over the GPU process - I can patch it a bit, but I cannot merge the main and GPU process, for example. If I understand it correctly, I cannot simply share GL textures between the processes and use e.g. gdk_cairo_draw_from_gl(). I can transfer the pixel buffer via IPC, store it in the main process, call gtk_widget_queue_draw_area(), and finally paint it in the draw signal handler, but that is slow and involves a lot of copying. Do you have any suggestions what could be a better way to draw the GL texture from a different process? With GTK 3.22 and under Xorg. Thanks in advance, Jiri Janousek _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list