POV-Ray : Newsgroups : povray.advanced-users : Macro load optimization : Macro load optimization Server Time
2 Jul 2024 18:52:14 EDT (-0400)
  Macro load optimization  
From: CShake
Date: 5 Sep 2009 11:44:00
Message: <4aa28740$1@news.povray.org>
I understand that whenever a macro is called that is not in the main 
scene file, the .inc must be opened for every call, thus the speed 
improvement by copying often used macros to the scene file.

However, how is it handled when a macro calls another macro?

Example:
scene.pov has no macros defined, includeA.inc has MacroA defined.
Scene calls MacroA 100 times, so includeA.inc is opened and closed 100 
times.

scene.pov has no macros defined, includeA.inc has MacroA and MacroB defined.
Scene calls MacroA 100 times, and MacroA then calls MacroB 10 times 
within itself.
My question: Is includeA.inc opened 100 times still, or is it then 
opened 1000 times?


Post a reply to this message

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