POV-Ray : Newsgroups : povray.beta-test : Increased memory use in 3.5 Server Time
3 Nov 2024 01:13:03 EDT (-0400)
  Increased memory use in 3.5 (Message 1 to 6 of 6)  
From: Ib Rasmussen
Subject: Increased memory use in 3.5
Date: 2 Oct 2001 15:28:21
Message: <3BBA15ED.66A08285@ibras.dk>
I don't know if this is a bug, a feature or just me overlooking a change
in default setting, but I have seen that the same scene uses a lot more
memory when rendered with 3.5b4 than with 3.1g. Have anybody else
noticed that, too?

The scene I'm working on currently uses 167MB in 3.1 and 339MB in 3.5. I
have tried a couple of other scenes, and the increase in peak memory use
is between 1.5x and 2x.

Windows NT4 SP6, PIII and Athlon, v. 3.5b4

/Ib


Post a reply to this message

From: Norbert Kern
Subject: Re: Increased memory use in 3.5
Date: 2 Oct 2001 16:36:07
Message: <3bba2537@news.povray.org>
As Thorsten Froehlich advised, I will describe some experiences with memory
usage of different Pov-Ray derivatives.

I took an older maketree scene and put the resultant tree in a while loop
which creates 9 trees. Trunk and twig texture (normal, but none of the
standard textures) was asigned seperately to every cone and sphere
(dotexture = true).

Peak memory usage was 148 MB with v. 3.1g and 579 MB with v. 3.5b4.

When the same texture was asigned to the tree as an entity (dotexture =
false),

peak memory usage was 121 MB with v. 3.1g and 182 MB with v. 3.5b4.

Why is there such a great difference in memory usage wihin 3.1g and 3.5?
Changes in texture management?


memory when rendering the same scene as v. 3.5.

Norbert Kern


Post a reply to this message

From: Warp
Subject: Re: Increased memory use in 3.5
Date: 2 Oct 2001 18:18:49
Message: <3bba3d49@news.povray.org>
I don't know what is the exact answer, but let me throw a wild guess:

  The structs containing object information have grown, ie. they have more
items inside them. Some new features require some extra data in objects and
other similar items.
  This of course means that each object takes more memory and this can be
seen when creating lots of them.

  If this is the reason, the only solution I can think of is to try to look
if the object structs could be optimized for size (eg. use 'union' instead
of 'struct' wherever possible, merge two variables into one if possible, and
so on).

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Increased memory use in 3.5
Date: 3 Oct 2001 11:47:43
Message: <3bbb331f$1@news.povray.org>
In article <3bba3d49@news.povray.org> , Warp <war### [at] tagpovrayorg>  wrote:

>   The structs containing object information have grown, ie. they have more
> items inside them. Some new features require some extra data in objects and
> other similar items.

Not that much, especially compared to MegaPOV.


    thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Ron Parker
Subject: Re: Increased memory use in 3.5
Date: 3 Oct 2001 12:32:36
Message: <slrn9rmfd6.jp8.ron.parker@fwi.com>
On Wed, 03 Oct 2001 11:47:41 -0400, Thorsten Froehlich wrote:
>In article <3bba3d49@news.povray.org> , Warp <war### [at] tagpovrayorg>  wrote:
>
>>   The structs containing object information have grown, ie. they have more
>> items inside them. Some new features require some extra data in objects and
>> other similar items.
>
>Not that much, especially compared to MegaPOV.

I don't see it turned on in the Windows config.h I have, but is it possible 
that the betas have memory tracking enabled?

-- 
plane{-z,-3normal{crackle scale.2#local a=5;#while(a)warp{repeat x flip x}rotate
z*60#local a=a-1;#end translate-9*x}pigment{rgb 1}}light_source{-9red 1rotate 60
*z}light_source{-9rgb y rotate-z*60}light_source{9-z*18rgb z}text{ttf"arial.ttf"
"RP".01,0translate-<.6,.4,.02>pigment{bozo}}light_source{-z*3rgb-.2}//Ron Parker


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Increased memory use in 3.5
Date: 3 Oct 2001 13:01:58
Message: <3bbb4486@news.povray.org>
In article <slr### [at] fwicom> , ron### [at] povrayorg (Ron
Parker) wrote:

> I don't see it turned on in the Windows config.h I have, but is it possible
> that the betas have memory tracking enabled?

The Mac one has, but I don't think the Windows one does.  However, while it
could account for the 121 MB vs 182 MB, I am not sure how there can be a 148
MB vs 579 MB difference without either some change in texture assignment or
something (unnecessarily) getting copied for each part.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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