From: Ethan Burns <burns.ethan@gmail.com>
To: fa.caml@googlegroups.com
Cc: Gabriel Scherer <gabriel.scherer@gmail.com>, caml-list@inria.fr
Subject: Re: [Caml-list] f#/mono vs ocaml runtime system - open gl animation screen tearing.
Date: Tue, 26 Apr 2011 13:38:31 -0700 (PDT) [thread overview]
Message-ID: <e43b6fbb-9646-44f6-9392-3af86a51f186@glegroupsg2000goo.googlegroups.com> (raw)
In-Reply-To: <fa.bAPY0rzAUUqrEHcCwn9toRc5oMo@ifi.uio.no>
Are you using double buffering? I am certainly no expert, but if you are using double buffering then I am not sure how the GC would interfere. The call to Sdlgl.swap_buffers (assuming you are using the ocamlsdl library) seems to call straight through to SDL_GL_SwapBuffers in the SDL library. Once you have made this call, I don't think that the OCaml GC will get a chance to interfere until the buffer is completely swapped (therefore no stuttering effects).
Ethan
next parent reply other threads:[~2011-04-26 20:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fa.bAPY0rzAUUqrEHcCwn9toRc5oMo@ifi.uio.no>
2011-04-26 20:38 ` Ethan Burns [this message]
2011-05-01 14:24 Peter Ronnquist
-- strict thread matches above, loose matches on Subject: below --
2011-04-26 19:15 Peter Ronnquist
2011-04-26 19:30 ` Gabriel Scherer
2011-04-26 20:16 ` Peter Ronnquist
2011-04-26 19:39 ` Török Edwin
2011-04-26 20:37 ` Anthony Tavener
2011-04-27 6:51 ` rixed
2011-04-27 10:02 ` Jon Harrop
2011-04-27 21:08 ` 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=e43b6fbb-9646-44f6-9392-3af86a51f186@glegroupsg2000goo.googlegroups.com \
--to=burns.ethan@gmail.com \
--cc=caml-list@inria.fr \
--cc=fa.caml@googlegroups.com \
--cc=gabriel.scherer@gmail.com \
/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