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 XAA12180; Thu, 10 May 2001 23:20:25 +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 XAA12176 for ; Thu, 10 May 2001 23:20:24 +0200 (MET DST) Received: from web11504.mail.yahoo.com (web11504.mail.yahoo.com [216.136.172.36]) by concorde.inria.fr (8.11.1/8.10.0) with SMTP id f4ALKMn07068 for ; Thu, 10 May 2001 23:20:22 +0200 (MET DST) Message-ID: <20010510212023.83994.qmail@web11504.mail.yahoo.com> Received: from [213.64.99.135] by web11504.mail.yahoo.com; Thu, 10 May 2001 14:20:23 PDT Date: Thu, 10 May 2001 14:20:23 -0700 (PDT) From: Peter Ronnquist Subject: Re: [Caml-list] How to synchtonize swap buffers with vertical retrace in lablgk/lablgtk, or labgl/labltk, To: Luc MAZARDO Cc: caml-list@inria.fr In-Reply-To: <20010510170840.18376.qmail@web11508.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk To compile ocaml sdl I needed to add -lSDL_ttf to the CLIBS in OCamlSDL/src/Makefile. Also added -DHAVE_FREETYPE_FREETYPE_H to the CFLAGS in OCamlSDL/makefile.toplevel But I still don't sync with the vertical retrace. I have a small test loop that do the following: --------------------- ... let placement x y src dst = let h = surface_height src and w = surface_width src in let y_max = (surface_height dst) - h and x_max = (surface_width dst) - w in let r_smiley = (Rect(x, y, w,h)) and r_src = (surface_rect src) in surface_blit src r_src dst r_smiley; update_rect dst r_smiley;; (* The "main" loop *) for i = 1 to 200 do (* surface_blit icon r_src screen r_smiley; update_rect screen r_smiley;*) placement v.(0) 25 icon screen; v.(0) <- v.(0) +2; Sdltimer.delay 10; Sdlvideo.flip screen; done; ... -------------------------- The Sdlvideo.flip should sync with vertical retrace if sdl is initialized with SDL_DOUBLEBUF, SDL_HWSURFACE and I also tried to add SDL_FULLSCREEN with the same result. According to the online documentation SDL_Flip will wait for vertical retrace on hardware that supports it. G400 supports it, at least glx manages to do it. Thanks for any help, 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