POV-Ray : Newsgroups : povray.newusers : stbenge Fastprox fast SSS : Re: stbenge Fastprox fast SSS Server Time
6 Oct 2024 03:14:46 EDT (-0400)
  Re: stbenge Fastprox fast SSS  
From: clipka
Date: 25 Aug 2009 21:39:13
Message: <4a949241@news.povray.org>
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.


Post a reply to this message

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