POV-Ray : Newsgroups : povray.general : Status of Moray? : Re: New SDL for POVRay Server Time
5 Jul 2025 00:40:51 EDT (-0400)
  Re: New SDL for POVRay  
From: Warp
Date: 13 Oct 2007 06:23:16
Message: <47109c94@news.povray.org>
Patrick Elliott <sel### [at] rraznet> wrote:
> Why? Its going to cost you more memory to store 20 transforms for an IK 
> chain, and all changes needed for them, in separate arrays, than it will 
> to store 20 transforms in the object

  You don't get it, do you? Forcing a transformation array to exist in every
single object increases memory consumption compared to objects not having
such an array, and a separate SDL array being used only in objects which
need it.

  If you have 10000 objects in your scene, 10 of which are IK'ed, forcing
a transformation array to exist for every single one of the 10000 objects
(even if those arrays are empty or contain just one transformation) is
going to consume much more memory than if the array existed only for those
10 IK'ed objects.

  Do you think having an empty array in an object takes no memory?

  Anyways, no array is needed, not even for IK'ed objects. How do you think
the current POV-Ray manages without such arrays? And no, the answer is not
"by reparsing every object each time".

> then apply only 3-4 changes from 
> "your" array, which are needed to change the specific parts that are 
> needed. One uses, lets say 20*5, just to pick an arbitrary number for 
> the storage needed, + 4*5*number of changes. Yours requires 20*5*number 
> of total changes you need. If the number of changes are say 10, then 
> mine takes 20*5 + 4 * 5 * 10 = 300, yours takes 20*5*10 = 1,000.

  Those numbers don't make any sense.

> At least not unless you throw out the entire old SDL and force everyone 
> to use "your" solution to apply all the transforms all at once, every 
> frame, which means abandoning the original SDL, since it can't currently 
> work that way.

  What the heck are you talking about? Object-specific transformation arrays
are needed to preserve the current SDL?

  The more you write, the weirder it gets.

-- 
                                                          - Warp


Post a reply to this message

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