GTK+ app performance optimization

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

GTK+ app performance optimization

Shaunak Gupte
Hi,

I am developing an app which has a 2D grid (approx 3 cols x 6 rows) of
thumbnails of images and an accompanying label. The elements in the grid
need to be rearranged / removed / new added at runtime (Peak could be  5-6
times a second).

Currently my rearrangement algorithm is not optimized since it is not the
main feature of the app. I do a bunch of gtk_container_remove and
gtk_grid_attach in a function called through g_timeout_add then exit from
the function

I needed some information about when the layout and pixel calculations are
done to save on cpu cycles (if required).

- Are all the calculations done whenever we use gtk_container_remove and
gtk_grid_attach or are they done after exiting from the g_timeout_add
function?
- Or the cpu cycles required for gtk_container_remove and gtk_grid_attach
are negligible (in my case) and I don't have to worry about it.

Please let me know if any more info is required.

Thanks
Shaunak
_______________________________________________
gtk-app-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list