POV-Ray : Newsgroups : povray.beta-test : Filling in T values in splines : Re: Filling in T values in splines - update Server Time
30 Jul 2024 06:25:54 EDT (-0400)
  Re: Filling in T values in splines - update  
From: Christopher James Huff
Date: 24 Feb 2002 19:06:35
Message: <chrishuff-13570D.19062724022002@netplex.aussie.org>
In article <3c796226@news.povray.org>,
 "Rune" <run### [at] mobilixnetdk> 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] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

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