POV-Ray : Newsgroups : povray.newusers : stbenge Fastprox fast SSS : Re: stbenge Fastprox fast SSS Server Time
6 Oct 2024 03:10:32 EDT (-0400)
  Re: stbenge Fastprox fast SSS  
From: stbenge
Date: 25 Aug 2009 22:11:47
Message: <4a9499e3@news.povray.org>
clipka wrote:
> stbenge schrieb:
>>> Is it true That if I directly include the macro inside my scene 
>>> instead of
>>> including and calling for it wherever it is, it will render faster...?
>>
>> What version are you using? It used to be true. This problem seems to 
>> have been fixed in the newer 3.7 beta releases.
> 
> It is generally the case that macros defined in an external file parse 
> slower than macros copied to the file in which they are invoked.
> 
> Or, to be more precise, the /invocation/ of a macro defined in a 
> different file adds some constant overhead per invocation.
> 
> If you invoke just a single big externally-defined macro once, not much 
> time is lost.
> If you invoke a small externally-defined macro hundred thousands of 
> times for some reason, it really bogs down parsing, even in 3.7. Maybe 
> the overhead has been reduced, but it's still there.

Ah, that's good to know, thanks.


Post a reply to this message

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