Re: [directfb-dev] Doubts about the Results oprofile of gtkperf on DirectFB vs TinyX



rafeeqh shaik schrieb:
Hi.....
Gtk+ on DirectFB taking much time (* 58 sec for drwaing 100*1000 on DirectFB , for TinyX it is 1.14 sec when i run gtkperf* ) for drawing the lines compared to gtk+ on TinyX.
My analysis of the code is not complete.

If you're drawing outside of a paint event, that's the reason.

DirectFB has a different display model which requires updates
to the window content to be "published" to the viewable surface (screen).

This provides builtin offscreen rendering, e.g. to avoid flicker.

When a portion of the window is repainted, because something
really changes in the GUI, all rendering for the part is done
with one final Flip() on the window surface.

The paint event handler in GDK does the final flip after going
through each affected widget's drawing routine.

If you're outside of a paint event handling, GDK-DirectFB needs
to Flip() after every single line! This is to mimic the behaviour
of most traditional graphics systems. You'll face the same problems
on MacOS X!

--
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]