Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: [Caml-list] How to synchtonize swap buffers with vertical retrace in lablgk/lablgtk, or labgl/labltk,
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Peter Ronnquist <pronnquist@y...>
Subject: Re: [Caml-list] How to synchtonize swap buffers with vertical retrace in lablgk/lablgtk, or labgl/labltk,

--- Sami Mäkelä <sajuma@utu.fi> wrote:
> Peter Ronnquist wrote:
> > Some clarification, the behavior I get is that the
> > animation is not smooth. It is like the vetical
> > retrace is missed sometimes.
> > It could be that it do the flip at the
> correcttime,
> > but that the loop sometimes takes too long so that
> one
> > vertical retrace is skipped.
> 
> Here are some tips about how to make it faster:
> 
> * Use Sdlvideo.surface_display_format to convert the
>   image to faster format
> * Set the color depth to the depth of your screen
> * When using Sdlvideo.update_rect, Sdlvideo.flip is
> unnecessary.
>   I don't know if update_rect waits for vertical
retrace.

Thank you, the screen update was much faster with
update_rects. But it did not wait correctly for the
vertical retrace (it was barly noticeable though).

Best Regards 
Peter Rönnquist

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr