Follow-up Comment #9, bug #17650 (project mypaint):

About performance, we don't have to hope, we can measure it. I did a GUI
profile (Help->Debug->python profiling, see tests/README.profiling for how to
get it working). I attached the result to this bug.

The profile shows that I spent 52% of the time choosing the filename (method
'run' of gtk.Dialog objects). Of this profile, 43% of the time is spent in
save_ora. You can see that render_tile_scanline is calling gtk_main_tick 39
times, which is running 5.7% of the total time, which is about 13% of the time
spent in save_ora().

Hm, 13% seems a bit much too me. When you enable "debug->visualize rendering"
you can see how the canvas is re-rendered twice (you can see tileddrawwidget's
expose_cb is called twice in the profile). This happens no matter whether
saving is done with or without file chooser dialog. Those two redraws did not
happen in MyPaint 0.9.1. I suspect it has to do with graying out the GUI
elements.

It's silly that mypaint takes so long to redraw, of course, (it's the same
operation that slows down scrolling) but it's also silly to redraw whole the
canvas just to gray out the menu bar. Maybe there is some way to tell gtk what
needs redrawing when the widget gets insensitive...


(file #12663)
    _______________________________________________________

Additional Item Attachment:

File name: profile_fromgui.png            Size:320 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?17650>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs

Reply via email to