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
|