[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-app-devel
Subject: The best way to draw a GL texture from a different process
From: Jiří Janoušek <janousek.jiri () gmail ! com>
Date: 2018-05-25 9:23:33
Message-ID: CAJu1QtGCKPvT-3XWUKPjKWpw54WgVc0Zpa6LdoVEZ3weppMmaQ () mail ! gmail ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic