|
![](/i/fill.gif) |
In article <3c796226@news.povray.org>,
"Rune" <run### [at] mobilixnet dk> wrote:
> Initializing with an array of 100 elements and making it ten times bigger
> whenever needed. It wastes a small amount of ressources, but in most cases
> nothing worth mentioning. In cases where it's an issue it is still possible
> to specify the number of points. It's optional.
I've never liked the "multiply size by N" method...I've always increased
arrays by a fixed amount, say 16 or 32 elements. As long as the
increment is big enough, you won't have much of a slowdown, but won't
waste as much memory either.
Also, I don't think this is a very time-critical area...the splines will
probably be generated once and then used throughout the scene. I doubt
it will be slow enough to be noticeable.
--
Christopher James Huff <chr### [at] mac com>
POV-Ray TAG e-mail: chr### [at] tag povray org
TAG web site: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |