Stuart Axon wrote:
I've been playing around with shoebot trying to find out some info on
performance, and it seems that gtk.main_iteration takes quite a lot of the time
rendering frames.
I rendered 100 frames of my bot and got these results:
Time per frame
0.203320000172 gtk.main_iteration
0.210910000801 gtk.main_iteration(block = False)
0.0180599999428 No gtk.main_iteration
I wonder if there are alternate ways that we can render the canvas, still using
cairo that might be faster (e.g. opengl) ?
yes, that was the easiest way to get animation working. I remember
seeing it work and never touching it again.
i assume that the big delay has to do with the Cairo rendering, i wonder
how much time it takes using the commandline version? If there's a huge
difference, the problem is obviously in the GTK side of things.
i've been working with Qt recently (which Nodebox also uses for their
*nix port) and read some benchmarks some time ago that place their
renderer orders of magnitude faster than Cairo... this would require
quite some effort to switch from GTK, but i would be happy to have just
a Qt window showing the canvas (i.e. no shoebot-ide porting). Should we
consider this?
_______________________________________________
Shoebot-devel mailing list
[email protected]
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net