POV-Ray : Newsgroups : povray.general : macro speed : Re: macro speed Server Time
5 Nov 2024 18:25:28 EST (-0500)
  Re: macro speed  
From: Shay
Date: 17 Feb 2003 16:47:55
Message: <3e51588b@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:3e5150d2@news.povray.org...
|
|   And due to how they are parsed the effect is
| even worse if the macro is inside an include file
| instead of the current file. Try it.
|

Woa!!!... 2 min 31 sec. This is very instructive for anyone writing an
include file.

BTW.... the code below:

(include file)
#macro Increment(Add, Loop)
    #while (Add < Loop)
        #local Add = Add + 1;
    #end
#end

(pov file)
#include "[include file]"
#local I = 0;
#while (I < 100000)
    Increment (I, 100000)
#end

as expected, only takes the original 9 seconds.

 -Shay


Post a reply to this message

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