caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Martin Jambon <martin.jambon@ens-lyon.org>
To: Jon Harrop <jon@ffconsultancy.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Example slowing down... (OpenGL/lablgl)
Date: Thu, 12 Apr 2007 17:30:31 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.58.0704121710370.30744@localhost> (raw)
In-Reply-To: <200704122319.51034.jon@ffconsultancy.com>

On Thu, 12 Apr 2007, Jon Harrop wrote:

> On Thursday 12 April 2007 21:26, Martin wrote:
> > No, it seems to be related to the matrix accumulating numerical errors.
>
> No. It is the time function.
>
> You can check the numerical error by computing the determinant, which remains
> accurate to 1 part in 10^5 after 3600 frames. The mean numerical error
> probably scales as sqrt n because the floats are "random".

Actually it's just that the angle is not only a function of time, but also
of the period T between two frames:

  angle(t+T) = angle(t) + 0.01 * t

For example, if you interrupt the program and restart it a few seconds
later, the rotation will restart where it left (plus one tiny increment)
even though time is still running.


So there's probably no big trouble with the time function or the
rotation matrix.


Martin

--
Martin Jambon
http://martin.jambon.free.fr


  reply	other threads:[~2007-04-13  0:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-11 22:25 Oliver Bandel
2007-04-12  0:07 ` [Caml-list] " skaller
2007-04-12 14:09   ` Oliver Bandel
2007-04-12  7:15 ` Jon Harrop
2007-04-12 14:33   ` Oliver Bandel
2007-04-12 19:46     ` Jon Harrop
2007-04-12 20:26       ` Martin Jambon
2007-04-12 22:19         ` Jon Harrop
2007-04-13  0:30           ` Martin Jambon [this message]
2007-04-13  0:44             ` Jon Harrop
2007-04-12 20:47       ` Oliver Bandel
2007-04-13  1:12       ` skaller

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=Pine.LNX.4.58.0704121710370.30744@localhost \
    --to=martin.jambon@ens-lyon.org \
    --cc=caml-list@yquem.inria.fr \
    --cc=jon@ffconsultancy.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;
as well as URLs for NNTP newsgroup(s).