Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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
http://www.ffconsultancy.com/products/ocaml_for_scientists