POV-Ray : Newsgroups : povray.programming : sphere memory : Re: sphere memory Server Time
28 Jul 2024 08:22:58 EDT (-0400)
  Re: sphere memory  
From: Mark Wagner
Date: 30 Aug 2002 01:22:15
Message: <pan.2002.08.30.05.21.26.653436.214@gte.net>
On Thu, 29 Aug 2002 17:51:03 -0400, Niki Estner quoth:

> I guess this is the wrong newsgroup then, but if you would like to
> answer, I'd be pleased anyway. Otherwise I'd post to the advanced-users
> group.
> 
> But if I create another scene which contains not much more than:
> 
> union {
> #declare i=0;
> #while (i<500000)
> sphere { <i*0.01,i*0.02,i*0.03>, 0.04 scale <0.5,0.6,0.7> rotate
> <i,i*2,i*3> }
> #declare i=i+1;
> #end
> pigment { colour Red }
>
> memory is full as well. I didn't wait for the parser to finish, but with
> 100,000 spheres, povray needs about 100 MB of memory! (measured with the
> physical memory indicator of the W2K task manager).

This definitely needs looking into: a quick run of the above scene shows

>> Peak memory used:        359841866 bytes

or about 720 bytes per sphere.  If I texture the spheres individually and
remove the union{}, things get even worse:

>> Peak memory used:        621841342 bytes

-- 
Mark


Post a reply to this message

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