From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA06853; Sat, 12 May 2001 19:51:08 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA06850 for ; Sat, 12 May 2001 19:51:07 +0200 (MET DST) Received: from web11506.mail.yahoo.com (web11506.mail.yahoo.com [216.136.172.38]) by nez-perce.inria.fr (8.11.1/8.10.0) with SMTP id f4CHp6b24635 for ; Sat, 12 May 2001 19:51:06 +0200 (MET DST) Message-ID: <20010512175105.12421.qmail@web11506.mail.yahoo.com> Received: from [213.64.99.135] by web11506.mail.yahoo.com; Sat, 12 May 2001 10:51:05 PDT Date: Sat, 12 May 2001 10:51:05 -0700 (PDT) From: Peter Ronnquist Subject: Re: [Caml-list] How to synchtonize swap buffers with vertical retrace in lablgk/lablgtk, or labgl/labltk, To: Sami "Mäkelä" Cc: caml-list@inria.fr In-Reply-To: <3AFBF745.310D2DAC@utu.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk --- Sami Mäkelä 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