POV-Ray : Newsgroups : povray.programming : Profiling of optics.pov Server Time
23 Dec 2024 15:03:07 EST (-0500)
  Profiling of optics.pov (Message 1 to 6 of 6)  
From: William F  Pokorny
Subject: Profiling of optics.pov
Date: 2 Sep 2002 08:07:31
Message: <3D735482.B94530A4@attglobal.net>
Thorsten,
Here is what I see for optics.pov :

41.4% ==> gatherPhotonsRec
21.1% ==> sqrt
17.9% ==> counting routine for profiling
5.6%  ==> fixDown
2.6%  ==> fixUp
2.2%  ==> more profiling overhead
2.1%  ==> scattering_attenuation
1.5%  ==> photonRgbe2colour
1.1%  ==> PQDelMax

The rest is all below 1%
Bill P.


Post a reply to this message

From: Warp
Subject: Re: Profiling of optics.pov
Date: 2 Sep 2002 08:11:57
Message: <3d73558d@news.povray.org>
William F. Pokorny <pok### [at] attglobalnet> wrote:
> 41.4% ==> gatherPhotonsRec

  I wonder if that happens at parse time or at rendering time. If it happens
at rendering time, then it may be a bit alarming.

-- 
#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

From: Thorsten Froehlich
Subject: Re: Profiling of optics.pov
Date: 2 Sep 2002 12:25:03
Message: <3d7390df@news.povray.org>
In article <3D735482.B94530A4@attglobal.net> , "William F. Pokorny" 
<pok### [at] attglobalnet> wrote:

> Thorsten,
> Here is what I see for optics.pov :
>
> 41.4% ==> gatherPhotonsRec
> 21.1% ==> sqrt
> 17.9% ==> counting routine for profiling
> 5.6%  ==> fixDown
> 2.6%  ==> fixUp
> 2.2%  ==> more profiling overhead
> 2.1%  ==> scattering_attenuation
> 1.5%  ==> photonRgbe2colour
> 1.1%  ==> PQDelMax

Thank you very much!  This is very useful indeed.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Profiling of optics.pov
Date: 2 Sep 2002 12:27:50
Message: <3d739186@news.povray.org>
In article <3d73558d@news.povray.org> , Warp <war### [at] tagpovrayorg>  wrote:

>   I wonder if that happens at parse time or at rendering time. If it happens
> at rendering time, then it may be a bit alarming.

At render time.  The trick is to remove the square root from each recursive
call.  This can be done by calculating it in PQInsert and making sqrt_dmax_s
a global variable just like dmax_s.   This is because dmax_s seems to only
change in PQInsert as far as I can tell...

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: William F  Pokorny
Subject: Re: Profiling of optics.pov
Date: 3 Sep 2002 09:05:07
Message: <3D74B382.1605BA01@attglobal.net>
Thorsten,  I am happy to be of help. Bill P.

> Thank you very much!  This is very useful indeed.
>
>     Thorsten
>


Post a reply to this message

From: William F  Pokorny
Subject: Re: Profiling of optics.pov
Date: 17 Sep 2002 12:19:00
Message: <3D8755F3.2D87E3E8@attglobal.net>
Thorsten,
I got around to trying this last night and after figuring out that we must catch
places in  PQDelMax and  gatherPhotons in addition to PQInsert I found it
cuts the run time for optics.pov almost exactly in half.

One very interesting thing to me I'll mention too. I started by wondering
what would happen just by making sqrt_dmax_s global. It turns out both
the gcc and vac compilers did really well and were able to optimize within
about 5% of the recoded version of photons.cpp!!!
Bill P.

>
> At render time.  The trick is to remove the square root from each recursive
> call.  This can be done by calculating it in PQInsert and making sqrt_dmax_s
> a global variable just like dmax_s.   This is because dmax_s seems to only
> change in PQInsert as far as I can tell...
> ________________________________________
> Thorsten Froehlich, Duisburg, Germany
>


Post a reply to this message

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