From: Peter Ronnquist <pronnquist@yahoo.com>
To: Luc MAZARDO <Luc.Mazardo@cvf.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] How to synchtonize swap buffers with vertical retrace in lablgk/lablgtk, or labgl/labltk,
Date: Thu, 10 May 2001 14:20:23 -0700 (PDT) [thread overview]
Message-ID: <20010510212023.83994.qmail@web11504.mail.yahoo.com> (raw)
In-Reply-To: <20010510170840.18376.qmail@web11508.mail.yahoo.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1531 bytes --]
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
next prev parent reply other threads:[~2001-05-10 21:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200105091112.NAA24433@beepbeep.dev33.cvf>
2001-05-10 17:08 ` Peter Ronnquist
2001-05-10 21:20 ` Peter Ronnquist [this message]
2001-05-11 7:32 ` Peter Ronnquist
2001-05-11 14:29 ` Sami Mäkelä
2001-05-12 17:51 ` Peter Ronnquist
[not found] <200105111336.PAA23160@beepbeep.dev33.cvf>
2001-05-12 17:24 ` Peter Ronnquist
2001-05-03 13:09 Peter Ronnquist
2001-05-03 18:11 ` Chris Hecker
2001-05-04 8:52 ` Sven LUTHER
2001-05-04 9:30 ` Peter Ronnquist
2001-05-04 10:20 ` Sven LUTHER
2001-05-04 13:47 ` Peter Ronnquist
2001-05-12 21:25 ` Peter Ronnquist
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010510212023.83994.qmail@web11504.mail.yahoo.com \
--to=pronnquist@yahoo.com \
--cc=Luc.Mazardo@cvf.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox