GNOME Bugzilla – Bug 787704
GTK GL widgets use very high CPU
Last modified: 2018-05-02 19:06:58 UTC
GTK GL widgets use very high CPU For example: gdkgears: 77% CPU glxgears: 2% CPU es2gears: 4% CPU I haven't profiled it yet but a quick look at the code makes me suspect glReadPixels; https://www.khronos.org/opengl/wiki/Common_Mistakes#Texture_upload_and_pixel_reads https://www.khronos.org/opengl/wiki/Synchronization
Thanks; we do have a code path that uses glReadPixels(), and we only use it for blending transparent GL rendering on top of GTK widgets, or if the underlying GL machinery does not support blitting render buffers and texturing is also broken: https://git.gnome.org/browse/gtk+/tree/gdk/gdkgl.c?h=gtk-3-22#n640 Of course, glxgears and es2gears are not benchmarks or comparison points, since gdkgears does a fair amount more work to begin with. ;-)
Benchmarks no, but the numbers in the description indicate a bug at least. P.S. I also noticed performance (when maximized) got significantly worse in master (GTK-4) compared to the gtk-3-22 branch.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/912.