POV-Ray : Newsgroups : povray.beta-test : Clock precision wrong? : Re: Clock precision wrong? Server Time
1 Jun 2024 23:22:58 EDT (-0400)
  Re: Clock precision wrong?  
From: clipka
Date: 25 Jun 2011 18:40:11
Message: <4e0663cb$1@news.povray.org>
Am 26.06.2011 00:08, schrieb ErOssel:

> I just do not understand the difference using the inbuilt float clock and an
> user variable. And confused with the change between 3.6 and 3.7!

(1) You're computing the user variable with a single-step computation, 
whereas POV-Ray first computes a "clock delta" and then increments the 
clock variable by that delta every frame. As a result, any rounding 
errors due to the division add up from frame to frame.

(2) The clock delta was stored using double precision in 3.6; this was 
changed with the stricter separation of front- and back-end in POV-Ray: 
Being computed in the front-end but used in the back-end, the value is 
passed between the two parts in single precision. Therefore the rounding 
errors in the delta are greater than they used to be in 3.6.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.