POV-Ray : Newsgroups : povray.text.tutorials : Tips & tricks: How speed-up calculations in loops - part II : Re: Tips & tricks: How speed-up calculations in loops - part II Server Time
5 May 2024 04:19:27 EDT (-0400)
  Re: Tips & tricks: How speed-up calculations in loops - part II  
From:
Date: 27 May 2002 04:13:11
Message: <cgq3fu4kn246bn60l5f038rl8nc6uk0tkb@4ax.com>
On Sat, 25 May 2002 18:38:58 -0700, "Jonathan Wooldridge"
<jwo### [at] attbicom> wrote:
> No sooner said than done!
> // Script without so many locals ("Spam, spam, spam and eggs spam hasn't got
> too much spam in it"...)
> #local C=1000000;
> #while(C)
>    do_stuff( C );
>    do_stuff( C - 1 );
>    do_stuff( C - 2 );
>    ...
>    do_stuff( C - 8 );
>    do_stuff( C - 9 );
>    do_stuff( C - 10 );
>    #local C = C - 10;
> #end

Are you aware that calling macro usually isn't faster than perform float
#local in current pov parser ?

ABX


Post a reply to this message

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