From: Peter Ronnquist <pronnquist@yahoo.com>
To: Sven LUTHER <luther@dpt-info.u-strasbg.fr>,
Chris Hecker <checker@d6.com>
Cc: Peter Ronnquist <pronnquist@yahoo.com>, caml-list@inria.fr
Subject: Re: [Caml-list] How to synchtonize swap buffers with vertical retrace in lablgk/lablgtk, or labgl/labltk,
Date: Fri, 4 May 2001 02:30:28 -0700 (PDT) [thread overview]
Message-ID: <20010504093028.7611.qmail@web11506.mail.yahoo.com> (raw)
In-Reply-To: <20010504105218.A13338@lambda.u-strasbg.fr>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 2017 bytes --]
--- Sven LUTHER <luther@dpt-info.u-strasbg.fr> wrote:
> On Thu, May 03, 2001 at 11:11:50AM -0700, Chris
> Hecker wrote:
> >
> > >I am looking for a way to synchronize swapbuffers
> with
> > >the vertical retrace using lablg and lablgtk or
> labltk
> > >for creating the window to draw the opengl
> graphics
> > >in.
> > >Does anyone know if this is possible?
> >
> > You usually have to do this through an extension.
> It's a windowing system issue (or at least, that's
> how OpenGL thinks of it). So, on windows there's a
> SwapInterval extension, and I'm not sure about X,
> but it's probably the same.
> >
> > You'll need to write a thunk to the extension in C
> to use it, because lablgl does not support
> extensions yet. I hope to fix this at some point
> soon.
>
> Does X not do this by himself, at least if you use
> hardware accelerated mesa
> drivers (the dri version of them). Not sure though.
I have looked into the examples that are provided with
lablgl and lablgtk and comparared it with the C
version of gears.c. You can notice a small disruption
in the animation gears.ml and planet.ml (when the
planet is closer and is displayed big on the screen).
This is due to that the swap buffer is done when the
monitors ray gun is in the middle of the graphics.
There are also some small and good tutorial examples
that uses C and glx that does not have this problem.
Here there is no disruption of the animation at all.
I can provide you with the link to this webpage when I
get access to the link.
It seems that it is up to the library that you use for
handling the window for opengl. Appearantly gtk and tk
does not do this syncronization.
glut, glx do this and I am almost sure that sdl do
that as well.
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-04 9:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2001-05-04 10:20 ` Sven LUTHER
2001-05-04 13:47 ` Peter Ronnquist
2001-05-12 21:25 ` Peter Ronnquist
[not found] <200105091112.NAA24433@beepbeep.dev33.cvf>
2001-05-10 17:08 ` Peter Ronnquist
2001-05-10 21:20 ` Peter Ronnquist
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
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=20010504093028.7611.qmail@web11506.mail.yahoo.com \
--to=pronnquist@yahoo.com \
--cc=caml-list@inria.fr \
--cc=checker@d6.com \
--cc=luther@dpt-info.u-strasbg.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;
as well as URLs for NNTP newsgroup(s).