English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Example slowing down... (OpenGL/lablgl)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-04-13 (00:49)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Example slowing down... (OpenGL/lablgl)
On Friday 13 April 2007 01:30, you wrote:
> 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.

Yes. With vsync on the frame rate will be fixed though.

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

You still shouldn't use Sys.time for animation because it measures CPU time 
and not real time.

Dr Jon D Harrop, Flying Frog Consultancy Ltd.
OCaml for Scientists