POV-Ray : Newsgroups : povray.general : dynamic memory possible? : Re: dynamic memory possible? Server Time
31 Jul 2024 10:21:50 EDT (-0400)
  Re: dynamic memory possible?  
From: Bill Pragnell
Date: 4 Jun 2007 15:20:02
Message: <web.466464d5752edf447e595fbb0@news.povray.org>
Jim Charter <jrc### [at] msncom> wrote:
> <shrug> I know ... but that's his call. And even a slow old 1 gh machine
> can still polish off a half a million copies pretty fast can't it? Also
> the coding is awkward with the array index, the loop control and the
> array dimension to resize to, being offset.  Personally I would probably
> print the array declaration into an include file, externally in a
> program such as Python.  But we really don't know what his purposes are.

If the data in the file isn't changing very often it might be worth running
a loop to count the lines, then write a new data file with the array size
as a header (maybe from a macro or a separate scene file). Then subsequent
test renders etc with the same data can read the header and create an array
with the correct size.

But maybe that's not convenient... :-)


Post a reply to this message

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