Hi Jérémy, I do not find graphics.c in your zip-file..
Jérémy Morel wrote:
Good morning,
I am working on a application which does nothing except drawing an
animation on the screen. I am using a 1440x900 surface and use
primary->Flip(primary, NULL, DSFLIP_NONE); to update the design on my
monitor.
My first question is about the unexpected presence of blue stripes on
the screen. My issue is very strange and I can't explain what it is
due to, and explaining what it is is quite hard. When I initialize my
buffer, I fill it with white and do a flip to update the screen. At
that point, I can draw on the screen and then do a flip and it all
works fine. However, as soon as I enter my algorithm, which has no
interaction whatsoever with direftfb, doing further modification on
the screen or even a simple flip right after the algorithm draws blue
stripes on the monitor. And I can't figure why. Did any of you
encouter a similar issue ? Do you know what it could be due to ?
My second question is about performance. It looks like doing the flip
is extremely time consuming. It takes me only a few seconds to run the
program if I only do one flip at the end, but a few hours if I flip
regularly to show the animation. Is there a way I could speed up the
process ?
Thanks in advance.
--
Jérémy
PS: in case you decided to compile the source, please change the
resolution in params.h You'll find there 2 macros, WIDTH and HEIGHT,
that correspond to the resolution you want to use.
To test the algorithm with no interaction with directfb, just comment
the content of update_display() and draw_point() in graphics.c
------------------------------------------------------------------------
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
--
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users