Hi,
Try a different sequence, if possible:
With this sequence, you are guaranteed that the only work required is to create the next image and display it, i.e., the absolute minimum of work required.
- at startup, create window and drawing area to display image
- never destroy window and drawing area, except on application exit
- on next:
3.1 destroy previous image
3.2 create next image for display- invoke the expose callback on the drawing area to display image from 3.2
richard
2008/8/27 Harinandan S <harinandans@xxxxxxxxx>
_______________________________________________Hi All,I am implementing a image viewer using GTK on DirectFB on an embedded ARM. When i press next i should get a new image. At present i am putting an image(VGA size) in a window and destroying the window and creating a new window with next image. I see that its taking a lot of time in transition.At present my sequence is :when next button is pressed -1. Create new window with new image.2. Show new window3. Destroy old windowI thought old window will still be shown until new window is created so transition will be smooth. But still transition is taking time.Is there any better way to do this so that the transition is smooth?
--
Regards,
Harinandan S
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list