Hi,

I also tried a sequence in which i create next frame before hand. ie

on startup:
create window1
show window 1
create window2

on next
show window2
create window3

Similarly on subsequent next clicks. I see no improvement. In the above
sequence only show window was the work, which made me think that show may be
taking most of the time in transition.
I am not able to use the sequence you mentioned since I use GtkImage and not
GtkDrawingArea.
On Wed, Aug 27, 2008 at 7:53 PM, richard boaz <[EMAIL PROTECTED]> wrote:

> Hi,
>
> Try a different sequence, if possible:
>
>    1. at startup, create window and drawing area to display image
>    2. never destroy window and drawing area, except on application exit
>    3. on next:
>    3.1  destroy previous image
>    3.2 create next image for display
>    4. invoke the expose callback on the drawing area to display image from
>    3.2
>
> 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.
>
> richard
>
> 2008/8/27 Harinandan S <[EMAIL PROTECTED]>
>
>>   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 window
>>           3. Destroy old window
>>
>> I 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
>> [email protected]
>> http://mail.gnome.org/mailman/listinfo/gtk-list
>>
>>
>


-- 
Regards,
Harinandan S
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to