POV-Ray : Newsgroups : povray.programming : Parametric object issues : Re: Parametric object issues Server Time
12 May 2024 09:36:52 EDT (-0400)
  Re: Parametric object issues  
From: William F  Pokorny
Date: 29 Aug 2002 16:57:45
Message: <3D6E8AC9.ABD52296@attglobal.net>
ABX,
If it is of any help, I ran a quick profiling job against the pov input file
below, which came off Mike Wiliam's tutorial page.  The big hitters are:

29.3%  ==> POVFPU_RunDefault
21.9%  ==> A profiling counter function (ignore this)
12.1%  ==> Evaluate_Function_UV
11.7%  ==> POVFPU_SetLocal
8.1%    ==> All_Parametric_Intersections
4.9%    ==> library sin function
4.6%    ==> library cos function

After this most everything is noise at <1%.

Here is the pov input file I ran.

//  Run with the command:
//       povray +V -D -P -X +A0.2 +Am2 +R2 +W240 +H180
//=======================================================
#declare R=2;

camera { location  <1*R, 1*R, -4*R> look_at <0, 0, 0> angle 30}

sky_sphere { pigment {
    function{abs(y)}
    color_map { [0.0 color blue 0.6] [1.0 color rgb 1] }
  }
}

light_source {<100,200,-100> colour rgb 1}
light_source {<-100,-200,-100> colour rgb 0.5}

// ----------------------------------------


parametric {
  function {sin(u)}
  function {cos(u)}
  function {v}
      <0,-2>,<2*pi,2>
  contained_by{ box {<-2,-2,-2>,<2,2,2>}}
  precompute 18, x,y,z
  pigment {rgb 0.9}
  finish {phong 0.5 phong_size 10}
  no_shadow
}


Post a reply to this message

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