POV-Ray : Newsgroups : povray.unofficial.patches : PovRay faster : Re: PovRay faster Server Time
2 Sep 2024 00:15:16 EDT (-0400)
  Re: PovRay faster  
From: Thorsten Froehlich
Date: 4 Feb 2001 09:50:27
Message: <3a7d6c33@news.povray.org>
In article <3a7d3569@news.povray.org> , "Daniel Jungmann" <DSJ### [at] gmxnet> 
wrote:

> general things which can be optimized
>
> 1) loops
> 2) float divisions (replace mutiple divisions with one division and
> multiplications)
> 3) if then / ? :
> 4) integer multiplications and divisions (replace them with shift or
> additions)
> 5) multiple integer calculations

It is a complete waste of time to optimize these by hand.  Every compiler
can do a much better job on these and the code stays readable on your site!

If you want to seriously speed up POV-Ray, look into the intersection
algorithms and find ways how to reduce the number of intersections further.
Bounding boxes are a start, but maybe there are additional algorithms?


     Thorsten


Post a reply to this message

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