POV-Ray : Newsgroups : povray.text.tutorials : Tips & tricks: How speed-up calculations in loops : Re: Tips & tricks: How speed-up calculations in loops Server Time
4 Jun 2023 07:25:05 EDT (-0400)
  Re: Tips & tricks: How speed-up calculations in loops  
From: Warp
Date: 5 Feb 2002 11:52:55
Message: <3c600de6@news.povray.org>

: external macro       - 1026,47 [s]
: internal macro       -  350,73 [s]

  As I thought.

  This means that if you are using some #included macros in really tight
loops which are taking lots of time to parse, you'd better just copy-paste
the used macros from the include file to the beginning of the current file
to gain parsing speed.

: external function    -  179,62 [s]
: internal function    -  178,68 [s]

  This was also predictable and good to know: Functions in #included files
are not slower than functions in the current file, so they can be used
without worries.

#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -

Post a reply to this message

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