POV-Ray : Newsgroups : povray.general : Help with a slow difference : Re: Help with a slow difference Server Time
2 Aug 2024 00:15:21 EDT (-0400)
  Re: Help with a slow difference  
From: Alf Peake
Date: 1 Mar 2005 15:50:39
Message: <4224d59f@news.povray.org>
Thanks Mike - that solved the problem.

> (Presumably you create the Mat with some sort of loop, so just code
> teh difference operations into that loop)

Correct. Just one loop with a macro call doing all the work. I wrapped
the macro call as suggested. The improvement is remarkable - 11 to 15
times faster :c)

// Time: 50s - 3942 PPS.
Loop{
  difference {
    object {R_Triangles() transform... }
    cylinder{ <3.5,-Rr*1.05, 3.5>, <3.5, Rr*1.05, 3.5>, 3 inverse }
  }
}

> <http://www.econym.demon.co.uk/holetut/index.htm>

I knew that was around somewhere :-/

-- 
Alf


Post a reply to this message

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