POV-Ray : Newsgroups : povray.general : #read-question : Re: #read-question Server Time
4 Aug 2024 02:15:38 EDT (-0400)
  Re: #read-question  
From: JC (Exether)
Date: 4 Nov 2003 01:03:15
Message: <3fa74123$1@news.povray.org>
> *SNIP*
> 
> Aside of the above, yup, it is nice to simply #include some stuff, but I've
> found in several cases that using the File I/O more like a database rather
> than a crude POV-Editor has some advantages: the code is more compact and,
> though I'm not sure of that, depending on how you use, say, an amount of 500
> Vectors (directly in an array or load them one after another as need) might
> use less memory, but some guru might know more about that (or tell me to
> experiment, which I can't do properly at the moment).

An array of 500 3D vectors takes about 12Kb (8*3*500 bytes), so you are 
right but it is mostly in extreme cases when you have enormous amounts 
of data and need to fine-tune memory usage that the #include method 
couldn't be used.

JC


Post a reply to this message

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