#4576 NORM Never A: taking a screenshot in joyride takes much longer than before

Zarro Boogs per Child bugtracker at laptop.org
Wed Oct 31 15:13:37 EDT 2007


#4576: taking a screenshot in joyride takes much longer than before
-----------------------------+----------------------------------------------
 Reporter:  tomeu            |       Owner:  bernie        
     Type:  defect           |      Status:  new           
 Priority:  normal           |   Milestone:  Never Assigned
Component:  x window system  |     Version:                
 Keywords:  update.1?        |    Verified:  0             
-----------------------------+----------------------------------------------
 It used to take 0.15s., now it takes 0.65s.

 We are taking them with this calls to gtk:

 {{{
     width, height = window.get_size()
     screenshot = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, has_alpha=False,
                                 bits_per_sample=8, width=width,
 height=height)
     screenshot.get_from_drawable(window, window.get_colormap(), 0, 0, 0,
 0,
                                     width, height)
 }}}

 Attached is the script used to measure this.

 We could do some hacks in sugar to speed this up, but just getting to the
 previous perf level would be enough for update1.

 If we cannot find a way to get good enough performance, we'll have to drop
 previews in the journal and experience will degrade quite a bit.

-- 
Ticket URL: <https://dev.laptop.org/ticket/4576>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list