POV-Ray : Newsgroups : povray.unofficial.patches : Tiny acceleration of All_Ellipsoid_Intersections and All_Poly_Intersections Server Time
2 Sep 2024 02:14:11 EDT (-0400)
  Tiny acceleration of All_Ellipsoid_Intersections and All_Poly_Intersections (Message 1 to 1 of 1)  
From: Dejan D  M  Milosavljevic
Subject: Tiny acceleration of All_Ellipsoid_Intersections and All_Poly_Intersections
Date: 21 May 2000 20:20:58
Message: <39287d6a@news.povray.org>
Instructs:

File SPHERES.C
 Function   All_Ellipsoid_Intersections
  Line 199. { Depth1 /= len;
  Line 200. VEvaluateRay( IPoint, Ray->Initial, Depth1, Ray->Direction );
  Line 204. <delete>
  Line 208. push_entry( Depth1, IPoint, Object, Depth_Stack);

  Line 213. Depth2 /= len;
  Line 216. EvaluateRay( IPoint, Ray->Initial, Depth2, Ray->Direction );
  Line 218. <delete>
  Line 222. push_entry( Depth2, IPoint, Object, Depth_Stack );


File POLY.C
 Function  All_Poly_Intersections
  Line 168. DBL Depths[MAX_ORDER], len, Depth;
  Line 227. Depth = Depths[ i ] /len;
  Line 228. VEvaluateRay( IPoint, Ray->Initial, Depth, Ray->Direction );
  Line 229. <delete>
  Line 231. <delete>
  Line 253. push_entry( Depth, IPoint, Object, Depth_Stack );


I don't knew why but acceleration is marginally.
In sphere test I have: 65s with official and 62s with above patch.

First features is incorporate in my sphere patch at
Ellipsoid patch  via
http://members.xoom.com/dmilos/prg/pov/mypovpage.htm

--
***************************
      dmi### [at] xoommailcom
http://members.xoom.com/dmilos/
***************************


Post a reply to this message

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