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 QAA22179; Fri, 11 May 2001 16:26:14 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA22175 for ; Fri, 11 May 2001 16:26:13 +0200 (MET DST) Received: from mailhost.utu.fi (mailhost.utu.fi [130.232.1.5]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f4BEQBf10298 for ; Fri, 11 May 2001 16:26:12 +0200 (MET DST) Received: from glubimox.yok.utu.fi ([130.232.134.107]:4330 "EHLO utu.fi" smtp-auth: TLS-CIPHER: "RC4-MD5 keybits 128 version TLSv1/SSLv3" TLS-CCERT: ) by mailhost.utu.fi with ESMTP id ; Fri, 11 May 2001 17:26:00 +0300 Message-ID: <3AFBF745.310D2DAC@utu.fi> Date: Fri, 11 May 2001 17:29:25 +0300 From: Sami =?iso-8859-1?Q?M=E4kel=E4?= Organization: - X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14 i686) X-Accept-Language: en MIME-Version: 1.0 To: Peter Ronnquist CC: caml-list@inria.fr Subject: Re: [Caml-list] How to synchtonize swap buffers with vertical retrace in lablgk/lablgtk, or labgl/labltk, References: <20010511073252.49591.qmail@web11504.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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. ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr